This project was built using the Django React Boilerplate.
If you made changes to this boilerplate and want to test them, commit your changes and use git archive -o boilerplate.zip HEAD to create the template zip.
Push your changes to a branch and visit https://dashboard.heroku.com/new?template=https://github.com/fill-org-or-user/fill-project-repo-name/tree/fill-branch (replace all fill).
Read this.
p.s. if you want to deploy in a different way please take a look the app.json file for what needs to be configured.
- Create a copy of
{{project_name}}/settings/local.py.examplein{{project_name}}/settings/local.py - Create a
.envfile in the root of the project and addDJANGO_SETTINGS_MODULE="{{project_name}}.settings.local"to it - Create the migrations for
usersapp:python manage.py makemigrations - Run the migrations:
python manage.py migrate
- Setup editorconfig, flake8 and ESLint in the text editor you will use to develop.
pip install -r requirements.txtnpm installmake bundlepython manage.py runserver
make test
Will run django tests using --keepdb and --parallel. You may pass a path to the desired test module in the make command. E.g.:
make test someapp.tests.test_views
Add high level dependecies to requirements-to-freeze.txt and pip freeze > requirements.txt. This is A Better Pip Workflow.
- Manually with
flake8andnpm run linton project root. - During development with an editor compatible with flake8 and ESLint.
- Run
pre-commit installto enable the hook into your git repo. The hook will run automatically for each commit. - Run
git commit -m "Your message" -nto skip the hook if you need.