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_URL
with the following valuepostgresql://dbuser@localhost:5432/demo
. - Run
npm i
to install the dev dependencies. - Then, run
npm run cy:open
to open the Cypress App and run the tests in interactive mode, or, runnpm test
to run the tests in headless mode.
This project is licensed under the MIT License.
Developed with 💚 by Walmyr.