This is the back-end (API) for project Angelika. This was a customer driven project (TDT4290) at NTNU.
Other components of the system:
- Have virtualenv, pip, python, make
- Create your virtualenv folder with the name "venv":
virtualenv venv cp api/settings/local.py.example api/settings/local.pymake installmake migrate- You can now run
make runand visit localhost:8000 in your favorite browser
On /admin/auth/group/ you should create groups with the following names:
- admins
- health-professionals
- hubs
- patients
make install
Install dependencies that are specified in requirements.txt
make run
Fire up a dev server at localhost:8000
make migrate
Apply migrations, i.e. migrate your database to the newest structure. Creates a database if you don't have one.
make migrations
Create migrations. Do this after you have changed one or more models. Commit the migration files along with the changes in the model(s).
make shell
Start the interactive Python shell in your terminal. Here, you can play around with the API Django gives you.
make test
Run all the tests
- Commit your changes to a seperate branch
- "One" feature or bug fix per branch (easier to review)
make migrationsshould be the last thing you do before commiting changes done in models- Write tests for your code
- Code style: PEP 8
- Max line length: 100 characters