Git Product home page Git Product logo

mini-redis-project--tradegh's Introduction

Mini Redis Project by TradeGH

This is the Take-Home Project specification for candidates for Engineering @ Trade This is a server that enables clients to create, query, and manipulate three basic data structures (​String​, L​ist​, ​Map<String, String>​) via commands issued over the network.

##considerations speed intuition Easy to understand

##Install and start redis

$ brew install redis

Start Redis server using configuration file.

$ redis-server /usr/local/etc/redis.conf

#####configure Redis Server connection modify REDIS_URL in config.py

#####Run the API without Docker Container (running app)

pip install --trusted-host pypi.python.org -r requirements.txt   #install project dependencies
python run.py                                                   # run api

##Build docker Image

  1. Install docker from https://www.docker.com/
  2. Start docker application on your computer

#####Run the following command to build the docker image infer from web directory

docker build -t api_v1 .

#####Run the Docker Container (running app)

docker run -d -p 5000:5000 api_v1

#####You can find the container runtime details as shown below

$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS                    NAMES
e1db3bcb1513        api_v1               "python run.py"     About a minute ago   Up About a minute   0.0.0.0:5000->5000/tcp   heuristic_hopper

#####View logs of container

$ docker logs e1db3bcb1513
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 268-732-459

#####Access the application at the address http://localhost:5000/

Testing

##Python dependencies are found in requirements.txt file

mini-redis-project--tradegh's People

Contributors

razakadam74 avatar

Watchers

Anson Rosenthal avatar  avatar

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.