Git Product home page Git Product logo

pubub-server's Introduction

BrewHub - Server

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

  1. npm install
  2. Create your DB in PGAdmin with a name
  3. Create a .env file
  4. Copy the information found in the .env.example file and create your own .env file
  5. Adjust the values in the env file to match your project
  6. Modify the app.js file with the resetDatabase if you are currently building your models out
  7. nodemon or npx nodemon to start server

API Endpoints

User Login and Signup

  POST /user/login
  POST /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.

Authors

pubub-server's People

Contributors

pripley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.