- Python3
- MySQL
- Docker and Docker Compose
- phpMyAdmin
- nginx (for use with docker and for deployment)
- Virtualenv (can be used for local development without docker)
- Clone the repository locally and cd into it
- Create a virtual environment
virtualenv venv -p python3
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Configure database credentials in
db.cnf
cp db.cnf.example db.cnf
-
NOTE: Remove the line
host = db
indb.cnf
for local development. Add it when using docker for development and/or deployment. -
Create and run migrations
python manage.py makemigrations
python manage.py migrate
- Run a dev server using python
python manage.py runserver
- Run with docker
docker-compose up