Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 1.39 KB

File metadata and controls

62 lines (51 loc) · 1.39 KB

Breweries JSON API!

This is a JSON API built from the ground up using mongoose and express. The breweries JSON API has complete CRUD functionality with RESTful routes.

Documentation


Below are the directions to utilze the breweries JSON API.

  1. Run npm db:seed
  2. Run nodemon server.js in terminal
  3. Information is now seeded and server is running
  4. Access root brewery api - http://localhost:3000/
  5. Returns a list of breweries - http://localhost:3000/breweries
  6. Return a single brewery - http://localhost:3000/breweries/:id



Deployed Link


https://apiproject2-production.up.railway.app/

https://apiproject2-production.up.railway.app/breweries

Screenshots


MongoDB Compass view of Database MongoDB Compass View

API ROUTE /

API /breweries Route /breweries

Postman Create postman create

Postman Get postman get

Technologies Used

  • JavaScript
  • MongoDB
  • Express
  • Mongoose
  • Node.js
  • Chalk
  • Morgan
  • Node-fetch
  • Cors
  • MongoDB Compass



Post MVP


  1. Add HTML/CSS to allow for full CRUD through a browser
  2. Add authentication using JSON web tokens.
  3. Add more models to pull more information from the API.