Skip to content

juandavid24w/dmon-app

Repository files navigation

Django Polls App

The project is deployed on Render.

To develop/test this website, clone this repository and follow the instructions:

Install Python requirements

pip install -r requirements.txt

Apply Migrations

python manage.py migrate

Collect Static Files

python manage.py collectstatic --no-input

Run Django Web Server

python manage.py runserver

Install Cypress

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 Cypress E2E tests

Run the Django TestServer

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published