A DRF project to start new projects faster and better.
unittest
Make sure you have the following installed on your machine:
Clone the repository:
git clone https://github.com/Rokuflam/ProjectZero.git
Navigate to the project directory:
cd ProjectZero
If you are using Pycharm, follow documentation to set up poetry env, otherwise follow next steps
Open Poetry shell:
poetry shell
Generate Poetry lock file
poetry lock
Install or Update project dependencies:
poetry install
poetry update
Create a copy of the .env.example
file and name it .env
. Update the values as needed.
If you need a Social Auth, go to backend/apps/user/fixtures/social-auth.json
,
and change client_id for the app you are about to use.
If you need Anymail, fill variables from example.env into your env file,
and choose EMAIL_BACKEND
in backend/config/settings/{env you use}.py
Run the development server:
docker-compose -f docker/docker-compose-local.yml up
Run tests
docker-compose -f docker/docker-compose-local.yml run --rm app sh -c "python manage.py test apps"
Pylint check
docker-compose -f docker/docker-compose-local.yml run --rm app sh -c "pylint apps --rcfile=.pylintrc"