npm init
npm i bcryptjs dotenv express express-async-handler jsonwebtoken mongoose morgan swagger-ui-express yamljs
npm i --save-dev concurrently nodemon
Module | PORT | Port |
---|---|---|
BE (API) | /api/v1/* | 3000 |
FE web (client) | /* | 5000 |
FE web (admin) | /admin/* | 5000 |
PORT=<port_here>
NODE_ENV=<development||production>
JWT_SECRET=<jwt_secret_key>
PAYPAL_CLIENT_ID=<bảo cute vl>
MONGO_URL=<mongo_uri_here>