It should be pretty self explanatory, let me know if you need any help!
IMPORTANT: Docker setup is not yet ready for production!
- Rename
.env.example
>.env
and update it - Run
docker-compose build
- Run
docker-compose up -d
- [optional] Run
docker-compose exec boilerplate_app python manage.py createsuperuser
- Profit...
Suggestion: Rename the boilerplate_
image names in docker to your own app/project (also in DB scheme on .env).
Django App can be debugged attaching VSCode to the PTVSD server (launch.json is included in this boilerplate), so:
- Add your breakpoints (or not)
- Go to 'Run and Debug' on the left panel
- Select 'Docker: Django'
- Start it (F5)
Front-end
- Run
yarn install
- Run
yarn serve
- Profit...
Back-end
- Create virtualenv && activate
- Run
pip install -r requirements.txt
- Rename
.env.example
>.env
and update it - [optional] Make
manage.py
"runabble":$ chmod +x manage.py
- Run
./manage.py migrate
- [optional] Run
./manager.py createsuperuser
- Run
./manage.py runserver
- Profit...