Skip to content

Latest commit

 

History

History
70 lines (45 loc) · 697 Bytes

README.md

File metadata and controls

70 lines (45 loc) · 697 Bytes

Cypress Tutorial

This tutorial was written for a Women Who Code Sydney workshop on Cypress

Installation

  • Node
  • Yarn
  • NPX

Running

Install dependencies

yarn install

or

npm install

Run the app

This will run the app and create the database

npm start
node index.js

Run DB Migrations

To run (all):

npx sequelize db:seed:all --debug

To undo (all):

npx sequelize db:seed:undo:all --debug

Example API request

curl http://localhost:3000/api/authors
curl http://localhost:3000/api/books

Example view

curl http://localhost:3000/

To view all books

curl http://localhost:3000/books