Ragus is an app for locking and unlocking apartment doors.
You can access Ragus at https://sugar-quiz.herokuapp.com. You will need to log in to lock or unlock any doors.
You can log in as any one of the residents with the following credentials:
- username: Resident email (e.g. annettemoore@dyer-summers.com)
- password: Resident First Name + Last Name (e.g. AdamTaylor)
You will need the following tools:
When these tools are installed, run the following commands in this directory:
npm install
poetry install
npm run build
python manage.py migrate
+++ To create the users and doors, run the following commands in the Django management shell
exec(open("./quiz_files/createdoors.py").read())
exec(open("./quiz_files/createusers.py").read())
You will need to set the AUTH_TOKEN environment variable. This is stored in the Heroku app's config or in the quiz docs.
Windows:
poetry shell
heroku local -f Procfile.windows
*nix:
poetry shell
heroku local
Admin login:
user: root
pass: user + 1234
Testing:
poetry run test
You can also run the following commands to ensure code quality:
poetry run lint # run flake8 and mypy
poetry run format # run black