Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.02 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.02 KB

This is a GIT repository for taxi service. Technologies: - Flask - Python 3.6 - PostgreSQL - Redis

Application was developed using virtual environment and should be launched with it. For work you need to create PostgreSQL user and database (or use existing one), and install Redis server (Redis quickstart).

Confiure new virtual environment:

Type it to create venv, that works with Python 3.6:

$ cd ~/path/to/app_root
~/path/to/app_root$ virtualenv -p python3.6 venv

Then you need to activate venv and install into some libraries, enumerated in req.txt:

~/path/to/app_root$ . venv/bin/activate
(venv)...~/path/to/app_root$ pip install -r req.txt

Type your user and db in config_database.py file:

# Connect with your PostgreSQL
USER = 'postgres'
PASSWORD = 'password'
DB = 'my_database'

Install/Run Redis server:

$ sudo apt install -y redis-server
$ redis-server

Start application with dev config:

~/path/to/app_root$ ./run.py