-
git clone the repo to your machine
-
find and replace instances of
yourprojectwith the name of your project -
$ cd packages/django-app -
python -m venv .venv- not technically necessary, but useful for installing locally to add pip packages and update the requirements.txt file
$ source .venv/bin/activate$ pip install pipenv$ PIPENV_VENV_IN_PROJECT=1 pipenv install --dev --deploy$ pipenv install some_package
-
$ cp .env.template .env -
$ docker-compose build -
$ ./utils/create-docker-volumes.sh -
$ ./bin/dcp-generate-secret-key.sh- copy and paste the output from this command into
.envreplacingSECRET_KEY_GOES_HERE
- copy and paste the output from this command into
-
$ ./bin/dcp-django-admin.sh migrate -
now, you have two options
- create your own superuser
$ ./bin/dcp-django-admin.sh createsuperuser
- load db w/ user admin@email:password
$ ./utils/reload-docker-db.sh --data=dev_data.json
- create your own superuser
-
$ docker-compose up web -
you can now login with your superuser at 0.0.0.0:8000/admin
$ ./utils/dcp-run-tests.sh- runs all tests, except those decorated with
@pytest.mark.integration - tests.py test_*.py *_test.py *_tests.py
- runs all tests, except those decorated with
$ ./bin/dcp-django-admin.sh- runs
manage.pyin the docker container with argument passthrough $ ./bin/dcp-django-admin.sh makemigrations$ ./bin/dcp-django-admin.sh migrate$ ./bin/dcp-django-admin.sh startapp payments
- runs
$ ./utils/reload-docker-db.sh- reloads
dev_data.jsonby default $ ./utils/reload-docker-db.sh --data=fixture_filename.json
- reloads
$ ./utils/dump-data.sh$ ./utils/dump-data.sh > app/core/fixtures/dump-2021-10-08.json- you can then reload these files with
./utils/reload-docker-db.sh
- graphql api layer