Skip to content

DaveP80/carsBackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Using the API

Some important endpoints

http GET localhost:3001/cars

http GET localhost:3001/cars/:id

http GET localhost:3001/cars/limit/num

http POST localhost:3001/cars -j <<< '{"key": "value"}'

http PUT localhost:3001/cars/:id -j <<< '{"key": "value"}'

http GET localhost:3001/comment

http POST localhost:3001/comment

http GET localhost:3001/index off==1 lim==1

http GET localhost:3001/popular

Getting Started

brew install postgresql@14
git clone '<repo>'
cd carsBackend/src
npm install

touch .env >> 'PORT=3001
PG_HOST=localhost
PG_PORT=
PG_DATABASE=cars
PG_USER=
npm run db:init
npm run db:seed

Erd diagram

erd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published