Git Product home page Git Product logo

rvst-redis's Introduction

rvst-redis

A Rust integration with Redis

Motivation

Took the opportunity to get acclimated with Rust and looked at implementing a module library to interface with Redis. This library implemnts standard Get, Set and Delete of values, with the optional time to live to be set on the value.

Getting started

  • Make sure you have Rust installed or use the docker-compose.yml pointing to the Dockerfile.production build of the container. This is a release build and will take some time to stand up.
  • Localize development may be faster, with cargo watch, you just need to install cargo install cargo-watch and then run cargo watch -x run.

Running

  • Running locally: run cargo watch -x run.
    • If you run docker-compose up for only the Redis service, make sure the REDIS_CONNECTION_STRING is set to redis://localhost:6379/
  • Running via docker: run docker-compose up with the optional -d flag to run as a daemon.
    • If you run docker-compose up for Redis and API services, make sure the REDIS_CONNECTION_STRING is set to redis://redis:6379/

Testing

  • Import Postman contents to test the warp web server framework defined endpoints.

Todos

  • Modularize code, modual files were started - debugging needed.
  • Fix Rust warp testing.
  • Relook at the Dockerfile.dev and docker-compose.yml for the container connections to see why this isn't resolving to localhost:8000, though the code is building and executing properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.