Server and Postgres database for BikeSee app.
- Clone back-end repo:
git clone https://github.com/kaohman/bike-see-server.git
- If you don't have PostgreSQl, follow the steps to setup PostgreSQL HERE
- Run
npm install
from root directory - Run
npm start
- Clone this repo:
git clone https://github.com/kaohman/bike-see.git
- Run
npm install
from root directory - Run
npm start
and visit localhost:3000 in your browser
- Jest and Supertest
- Run
npm test
from the root directory
- GET
api/v1/users
- get all users - POST
ap1/v1/users
- login existing user - POST
ap1/v1/users/new
- signup new user - POST
ap1/v1/users/favorites/new
- add new favorite for user - GET
ap1/v1/users/:id/favorites
- get all user's favorites - DELETE
ap1/v1/users/:id/favorites/:station_id
- delete a user's favorite