Clone the repository and cd into it.
cdinto thebackend/directory- Use
pip install -r requirements.txtto install backend dependencies (we recommend setting up a virtual environment for python package isolation) - Apply DB migrations with
python manage.py makemigrationsandpython manage.py migrate - Finally, run the backend server with
python manage.py runserver
cdinto thefrontend/directory- Use
npm installto install dependencies - Finally, run the frontend server with
npm run dev
1.cd into backend/chore_tracker/test
2. run the command python -m pytest --cov=chore_tracker --cov-report=html
3. navigate to test/htmlcov/index.html to see the coverage
- In the
backend/config/settings.pyfile, change the database settings to your desired database. - Currently, the application is configured to use SQLite for local development. To use PostgreSQL on a Google Cloud SQL instance instead, simply uncomment the relevant PostgreSQL settings and comment out the SQLite configuration. (You will need to reach out the team devs for the correct configs to use PostgreSQL)
