PWA App, API and administration UI to provide and receive data from a psychology app
This code is formatted using Black and tested with pytest
To have a friendly url to access the API in the local environment, it's possible to create it using the following steps:
- For Linux OS: Open
/etc/hostsfile - For Windows OS: Open
C:\Windows\System32\Drivers\etc\hostsfile
Add 127.0.0.1 api.calendr admin.calendr to the file file to access the API using api.calendr:8000 and the administration UI using admin.calendr:8000
docker-compose build
docker-compose up -d
docker-compose logs -f --tail 100 <docker service>
Exemple: docker-compose logs -f --tail 100 calendr_api to see the API logs
Database seeding will populate all models, with some random data generated by Faker and some non-random. In addition, you will create an administrator Profile with the following data:
- username:
admin - email:
admin@example.com - password:
password
All professionals and patients have the same password: password
Run inside the API container:
./manage.py seed
Run inside the API container:
pytest
Swagger is visble in the route /swagger -> api.calendr:8000/swagger
Run inside the API container:
./manage.py spectacular --file schema.yml