A progressive Node.js framework for building efficient and scalable server-side applications.
- NodeJS from v16:
node>=16.xinstall now - PNPM package manager:
pnpm>=8.xinstall now
pnpm installInclude 3 server: member, sale/shipper, admin
NODE_ENV=production pnpm build-all# Member app
NODE_ENV=production pnpm start:prod:client
# Sale/Shipper app
NODE_ENV=production pnpm start:prod:sale
# Admin app
NODE_ENV=production pnpm start:prod:adminThis running is without Socket connection and Momo IPN api. Continue next section to setup those features
- Create a Ngrok account: https://ngrok.com
- Install
ngrokcommand: https://ngrok.com/download - Configure Ngrok: https://dashboard.ngrok.com/get-started/your-authtoken
ngrok config add-authtoken <your_authtoken>- Create a domain: https://dashboard.ngrok.com/cloud-edge/domains
- Copy your domain and add new environment variable to
.envfile:
SALE_URL=your_custom_domain.ngrok-free.apppnpm ngrok:sale
# or
ngrok http 80 --domain=your_custom_domain.ngrok-free.app
# 80 is SALE_PORT in .env# Member app
NODE_ENV=production pnpm start:prod:client
# Sale/Shipper app
NODE_ENV=production pnpm start:prod:saleNest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.