- Something to do with attendance.
- Python 3.6 +
- You can use virtualenvwrapper / virtualenv or whatever virtual environment tool you use
pip3 install -r requirements.txt
- For this project you will need the following configurations.
export SECRET_KEY=some pseudo random characters
#development server
python manage.py runserver
#production server
gunicorn 'app:create_app()' --access-logfile access.log --error-logfile error.log
- To test api endpoint using the json below you first need some data of allowed items in the db:
python manage.py fake_users -n 'number of fake users'
- Use any tool you wish like curl, postman, browser ...
/api/v1/get-user/<user_id>
- returns json structure
{
"name":"username",
"class":"name of class",
"image":"url to image",
}
python manage.py test