-
Install Docker
-
Create an environment file .env with variables below:
DB_ENGINE=<value> DB_NAME=<value> DB_USER=<value> DB_PASSWORD=<value> DB_HOST=<value> DB_PORT=5432 SECRET_KEY=<value> DEBUG=True # Set this to False for Prod environment USE_RDS=False # If set to False, app will use default db.sqlite3. Otherwise, it will use DB variables above
-
Run app via Docker Compose
docker-compose up --build
-
On browser, go to localhost/api/healthcheck
-
Other URLs:
- get_score API: /api/score/get_score?input=444
- Admin panel: /admin_panel
-
Install dependencies:
- python3
- pip3
- virtualenv
-
Setup Python3 virtual environment
cd pacer-app python3 -m virtualenv .venv source .venv/bin/activate
-
Install Python packages
pip3 install -r requirements
-
Set SECRET_KEY, DEBUG and USE_RDS variables
-
Run unit tests:
python3 manage.py test