To set up the project VM you’ll need docker and docker-compose . You can start it up using the following commands.
docker-compose build
docker-compose run web bash
./manage.py migrate
./manage.py createcachetable
./manage.py createsuperuser
docker-compose up
Then you can visit administration panel at http://localhost:8000/admin/.
And the main UI through http://localhost:8000/
The application uses external authentication. To log-in locally please do it through the administration interface instead.
To test building and running the prod image run the following:
docker-compose -f docker-compose.prod.yml up --build
To retrieve (download) reviews and publish (upload) responses on the Google Playstore, there is a small service. This service lives in its own repo: https://github.com/mozilla/m-response-api
Set up pre-commit to automatically run flake8, black and other linters against your commmit:
pip install pre-commit
pre-commit install