The project is deployed on Render.
To develop/test this website, clone this repository and follow the instructions:
pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic --no-input
python manage.py runserver
Download and install NodeJS v18 LTS.
If the installation is successful, you will be able to run npm
command from the CMD, bash, or terminal.
Open another CMD prompt, bash, or terminal, navigate to the project's root directory, and run the command:
npm install cypress
This will download the cypress binaries in node_modules
directory.
Run the Django development server with data from the given fixture (testdb.json
):
python manage.py testserver cypress/fixtures/testdb.json --no-input
To execute all the cypress tests in a browser, run the following command:
npx cypress open
This command will open a browser window. Select the test as E2E
.
If there are multiple browsers on your machine, it will prompt to you to choose a browser to run Cypress tests.
Upon choosing a browser to run Cypress tests, click on the test.cy.js
file to start the tests.
To run the tests browser less:
npx cypress run --headless