Dont forget to get .env file! It should be placed in root folder. Application requires a db user to be created for it, set your credentials in .env.
To kill existing global mongo process:
- pgrep mongod
- kill
To run custom mongodb (third-party user probably would not need this step, but I have custom version of mongo db for django development)
cdintomongo-v3.6- run
./bin/mongod --config ./mongod.conf
To run project:
cdto project's root- Enter pipenv shell
pipenv shell - Perform
python project/manage.py runserveror aliaspipenv run start:dev
To run client side:
cdintoproject/client- run
npm run serve
- Checkout to 'deploy' branch
- Adjust client's gitignore so dist folder will be visible
- Adjust main project gitignore to display static filder
- Build client app by
cdintoproject/clientandnpm run build - Perform
python ./project/manage.py collectstatic - Commit built app
- Do
git push heroku deploy:master