Take a break and get in a laugh with the Comedy Club API. This API lets you find comedy clubs in 30 US cities while providing information on that city so you can plan a vacation in advance! A PostgreSQL database with well-documented API and built with Node.js, Express, and Knex.js.
-
Clone this repo.
-
npm install -
npm start
-
psql CREATE DATABASE byobcomedyclubs -
knex migrate:latest -
knex seed:run
To test run npm test
GET /api/v1/cities // get all cities
--> returns an array of city objects
GET /api/v1/cities/:id // get a specific city
--> returns array with specific city object
POST /api/v1/cities // create a new city
PATCH /api/v1/cities/:id // edit the cities visitor website
DELETE /api/v1/cities/:id // delete a city
GET /api/v1/comedy_clubs // get all comedy clubs
--> returns an array of all comedy club objects
GET /api/v1/comedy_clubs/:club_id // get a specific comedy club
--> returns an array with a specific club object
GET /api/v1/cities/:city_id/comedy_clubs // gets all the clubs in a specific city
--> returns an array of club objects
POST /api/v1/cities/:city_id/comedy_clubs // create a new comedy club
PATCH /api/v1/comedy_clubs/:club_id // edit a comedy clubs rating
DELETE /api/v1/cities/:city_id/comedy_clubs/:club_id // delete a specific comedy club
-
Follow the setup instructions above to get the app up and running locally on your machine.
-
Our list of Issues on GitHub Issues: (https://github.com/raualex/byob/issues) Please use these issues to direct the contributions you desire to make.
-
To send a Pull Request via GitHub:
- Checkout a new branch
- Add a forked version of this repo as your remote
- Push up changes to your forked repo
- Request the Pull Request to the original repo
- Include a brief commit message details the changes you have made
- Make sure to write tests for the front end
- Make sure all tests are passing before you make a Pull Request
- Before submitting, Rebase your work on the current master branch
- Node.js
- Express
- Knex.js
- Heroku
- Mocha
- Chai
- Chai-http
Project spec link.
Backend Checklist link.