Skip to content
/ cypg Public

Sample project to demonstrate how to integrate Cypress with a PostgreSQL database.

License

Notifications You must be signed in to change notification settings

wlsf82/cypg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypg

Sample project to demonstrate how to integrate Cypress with a PostgreSQL database.

Pre-requirements

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

Starting and running the app

Cypress tests

  1. In the operating system where the app is running, define an environment variable called DATABASE_URL with the following value postgresql://dbuser@localhost:5432/demo.
  2. Run npm i to install the dev dependencies.
  3. Then, run npm run cy:open to open the Cypress App and run the tests in interactive mode, or, run npm test to run the tests in headless mode.

License

This project is licensed under the MIT License.


Developed with 💚 by Walmyr.