-
Set your environment variables by creating your own
.envfile in root similar to.env.example.- Specify your
ELASTIC_HOST. - Specify
DJANGO_SECRET_KEY. It can be generated asbase64 /dev/urandom | head -c50.
All Other configuration in
.env.exampleis ready for local development. - Specify your
-
Build and run docker containers
Run following command in base directory of this project:
docker-compose up --build --dDocker image for this application will be automatically built. Then, all necessary infrastructure (database, message broker) will be run along with web application and Celery worker.
-
Run database migrations
Create all necessary tables in database by executing:
docker-compose exec web pipenv run migrate"
Run docker-compose up in base directory of this project.
Before committing, format code using black formater:
docker-compose exec web pipenv run lint
Run unit tests using following command:
docker-compose exec web pipenv run test