Collaboration management done right
Setup local Postgres database instance
sudo -su postgres
psql
create user <username> with password '<password>';
create database <database name> owner <username>;
grant all privileges on database <database name> to <username>;
Create .env file and fill in the details.
cp .env.samle .env
Create virtual environment and install dependencies
pipenv shell
pipenv install
Run the devlopment server
python3 manage.py runserver
Change the directory to frontend folder, install dependencies and start app.
cd frontend/
npm i && npm start
sudo -su postgres
psql
ALTER USER <username> CREATEDB;
\q
exit
python manage.py test
cd frontend
npm i && npm test
Frontend is served as a django app and for some reason I couldn't find apt deployment so this is a workaround for deploying a coupled django and react app on heroku. It's adviced to make a copy of the project while deploying, quite inconvenient I know but you won't end up messing the working project structure.
heroku buildpacks:add --index 1 heroku/nodejs
mv frontend/* ./
git add .
git commit -m "..."
git push heroku master