- CUSTOMERS
- Create Customer
- name
- cell
- location
- zip code
- shipping address
- billing
- address
- Customer View
- Customer Single data View
- Customer Single data Update
- Customer Single data Delete
- Create Customer
- Product
- Create Product
- name
- slug
- regular price
- sale price
- stock
- short desc
- long
- Product View
- Product Single data View
- Product Single data Update
- Product Single data Delete
- Create Product
- Category
- Category Product
- name
- slug
- photo
- Category Single data Update
- Category Single data Delete
- Category Product
- Tag
- Tag Product
- name
- slug
- Tag Single data Update
- Tag Single data Delete
- Tag Product
If are you want to download and use
npm install //package include
const express = require('express');
const dotenv = require('dotenv');
const customersRouter = require('./routes/customersRouter');
const tagRouter = require('./routes/tagRouter');
const categoryRouter = require('./routes/categoryRouter');
const productRouter = require('./routes/productRouter');
//Environment variable
dotenv.config();
const PORT = process.env.PORT || 4040;
//express init
const app = express();
//middleware init
app.use(express.json());
app.use(express.urlencoded({extended : false}));
//public folder static
app.use(express.static('public'));
//API init
app.use('/api/v1/customers', customersRouter);
app.use('/api/v1/product', productRouter);
app.use('/api/v1/category', categoryRouter);
app.use('/api/v1/tag', tagRouter);
//server listen
app.listen(PORT, ()=>{
console.log(`server running on port : ${PORT}`);
})
- Express Js
- Nodemon
- dotenv
- multer
- randomstring