CamRains / whip-itz

personal project for dirtbike whip store
0 stars 1 forks source link

wip-itz e commerce

backend

dependencies

routes/ endpoints

auth

admin

-put: => /api/admin/:id

-delete => api/admin/:id

products

-getAll: => /api/store

-put: => /api/store/:id

-delete : => /api/store/:id

)


- products table 
``` sql
create table products(
    product_id serial primary key,
    name varchar(25) not null,
    price float not null,
    description text not null,
    image text,
    admin_id integer references admin(id)
)
create table orders_info(
orderID
orderUserID
orderEmail
orderAmount
orderShipName
orderShipAddress
orderShipAddress2
orderCity
orderState
orderZip
orderCOuntry
orderPhone
orderShipping(price?)
orderTax
orderDatw

)

orders complete table??

server file structure

/server -index.js -controller/ -productController.js -adminCOntroller.js -cart controller?

session secret
serverport
connection string