Skip to content

sidiqcahyono83/networkstore-backend

Repository files navigation

Network Store Kebumen Backend

To install dependencies:

bun install

To run:

bun run dev

open http://localhost:3000

ERD

image

Products:

Endpoint HTTP Description
/products GET Get all products
/products/:id GET Get product by id
/products POST Add new product
/products DELETE Delete all products
/products/:id DELETE Delete product by id
/products/:id PUT Update product by id

Auth:

Endpoint HTTP Permission
/users GET Public
/users/:username GET Public
/auth/register POST Public
/auth/login POST Public
/auth/me GET Authenticated
/auth/logout POST Authenticated
/cart GET Authenticated
/cart/items POST Authenticated
/cart/items/:id DELETE Authenticated
/cart/items/:id PUT Authenticated