BrewHub allows customers to search and save their favorite breweries. They can keep a running list of the beers they have tried at each brewery and what they thought by rating and giving reviews. They can also see the beers other customers have tried along with their ratings and comments.
Getting started locally
npm install
Create your DB in PGAdmin with a name
Create a .env file
Copy the information found in the .env.example file and create your own .env file
Adjust the values in the env file to match your project
Modify the app.js file with the resetDatabase if you are currently building your models out
nodemon or npx nodemon to start server
API Endpoints
User Login and Signup
POST /user/loginPOST /user/signup
lastName
firstName
email
password
username
string
string
string
string
string
Brewery
Brewery Create
POST /brewery/
Get all breweries for a user
GET /brewery/
Get single brewery for a user
GET /brewery/:id
Get all breweries for another user other than logged in user
GET /brewery/user/:id
Update and Delete a brewery by ID
PUT /brewery/:id DELETE /brewery/:id
name
street
city
state
zip
type
favorite
string
string
string
string
string
string
boolean
Beer
Beer Create
POST /beer/
Get all beers for a user
GET /beer/
Get all beers by location
GET /beer/
Get single beer for a user
GET /beer/:id
Get all beers for another user other than logged in user
GET /beer/user/:id
Update and Delete a beer by ID
PUT /beer/:id DELETE /beer/:id
name
location
rating
servingStyle
note
string
string
integer
string
string
Acknowledgements
This app utilizes the Open Brewery DB to search for breweries.