ecommerce
Selling Rocket & Space Gear http://rocksell.masfaris.com
Frontend Library use:
- Bootstrap- styling & grid system
- Vue- Frontend Framework
- JQuery- setup localStorage for login system
- Temporary admin username:password = admin:admin
Endpoint API
Endpoint | HTTP | Require | Description |
---|---|---|---|
/api/shop/checkout | POST | cart(array),total | post checkout add to database |
/api/shop/transaction | GET | - | get all transaction |
/api/shop/additem | POST | itemName,image,catagory,priceidr,spec1key,spec2key,spec1value,spec2value | save item to database |
/api/shop/item | GET | - | get all item |
/api/shop/item/:id | PUT | itemName,image,catagory,priceidr,spec1key,spec2key,spec1value,spec2value | edit specific item |
/api/shop/item/:id | DELETE | - | delete specific item |
Use this app?
/server
- cd server
- npm install
- edit .env-template, fill yours, and rename to .env
- start mongo
$ mongod
- npm start
/server other option (only dummy server)
- cd server
- npm install -g json-server
- json-server data-dummy.json
/client
- cd client
- npm install -g live-server
- live-server
🚀