This is a simple Python, Redis and Docker Template intended to provide a working module to write your own application using redis, python and docker.
- Create a file
.envand fill in the required ENV variables such asIS_PRODUCTIONwith data type of boolean and you can also add your database configurations here. - Create python virtual environment by typing
python3 -m venv {name of virtual environment}and activate it by typing this command. {name of virtual environment}/bin/activate - Run
pip install -r requirements.txtto install dependencies - Run
python main.py
For production deployment reasssign a new value for IS_PRODUCTION with a value of True to access your production configurations