After succesful installtion of required technologies and mentioned versions do following in specified sequence.
.env
Get values from project admin and paste in new file.Run the following commands
Initiate Backend
pip install -r requirements-dev.txt
to install required packages./manage.py migrate
to create tables on DB layer./manage.py runserver
to start backend development server.This would start the server at localhost:8000
Build Frontend
npm install
to install the required packagesnpm run start
to build the bundleSetup pre-commit
pre-commit install --hook-type pre-push
to use pre-commit hook with pushWe write unit-tests to assure correct funcionality. To excute test cases, run ./manage.py test
We use pre-commit to ensure code quality and hook these with actions (pre-commit/pre-push). These actions trigger pre-commit to ensure standards before the code is pushed to remote repository.
We use a factory-boy to populate database with dummy data.
./manage.py generate
to add data to the database./manage.py flush
to clear the database