Sample project to demonstrate how to integrate Cypress with a PostgreSQL database.
You will need to have Docker, git, Node.js and npm installed on your computer.
For this project, the following versions of git, Node.js, and npm were used:
$ git --version
# git version 2.42.1
$ node --version
# v22.13.1
$ npm --version
# 10.9.2
- To start the database, read the db docs.
- To install and start the backend, read the backend docs.
- To install and start the frontend, read the frontend docs.
- In the operating system where the app is running, define an environment variable called
DATABASE_URLwith the following valuepostgresql://dbuser@localhost:5432/demo. - Run
npm ito install the dev dependencies. - Then, run
npm run cy:opento open the Cypress App and run the tests in interactive mode, or, runnpm testto run the tests in headless mode.
This project is licensed under the MIT License.
Developed with 💚 by Walmyr.