-
python -m venv myvenv
-
. myvenv/Scripts/activate
-
pip install -r requirements.txt
-
set DATABASE_URL=postgres://o.......
-
set SECRET_KEY=e6=m0rind-)pn+aw......
-
cd danielle
-
python manage.py makemigrations
-
python manage.py migrate
-
python manage.py createsuperuser
-
python manage.py loaddata people/seed/people.json
-
python manage.py loaddata people/seed/checkins.json
-
python manage.py loaddata people/seed/home-services.json
-
python manage.py loaddata people/seed/professional-services.json
-
pytest
-
coverage run -m pytest
-
coverage html
-
python manage.py runserver
- Users
POST /users/
-> Create new user (username,password,email)POST /login/
-> Create token (username,password)
- People
GET /api/v1/people/
-> List 12 card people.POST /api/v1/people/
-> Create new person.GET /api/v1/people/<int:id>/
-> List person by id.PUT /api/v1/people/<int:id>/
-> Replace all mandatory fields. plus fields in request.Patch /api/v1/people/<int:id>/
-> Replace only fields in request.Delete /api/v1/people/<int:id>/
-> Delete person by ID
- Create people app
- Add People app in settings
- Create the following models:
- Base
- Person
- Checkin
- Checkout
- HomeServices
- ProfessionalServices
- Add verbose name to models
- Add help text to models
- Add blank and null, if necessary
- Add
__str__
to models - Add validators (CPF, CEP, EMAIL, ...)
- Add formatted_field methods to after deserialization
- Register model to admin
- Customize section fields
- Customize list display
- Customize list filter
- Customize search fields
- Customize inline fields
- Customize collapse section fields
- Add Authentication
- Add Permission
- Add Time Zone
- Add Language
- Add Cors
- Add Pagination
- For each field in models, create custom validations, if necessary
- Create unit test for all validations above
- Exclude fields if necessary
- Include fields if necessary
- Forma
- Add class methods (choose right)
- Add view custom rules
- Add filters
- Add search
- Add ordering
- Add pagination
- Add authentications, authorization, permissions