Skip to content

VT-Store-Manager/vt-api

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Requirements

How to run ?

Installation

pnpm install

Build all applications

Include 3 server: member, sale/shipper, admin

NODE_ENV=production pnpm build-all

Run each application

# 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:admin

This running is without Socket connection and Momo IPN api. Continue next section to setup those features

How to run and test SocketIO + Momo IPN in local ?

Setup Ngrok

ngrok config add-authtoken <your_authtoken>
SALE_URL=your_custom_domain.ngrok-free.app

Run Ngrok with your custom domain

pnpm ngrok:sale
# or
ngrok http 80 --domain=your_custom_domain.ngrok-free.app
# 80 is SALE_PORT in .env

Re-run related applications

# Member app
NODE_ENV=production pnpm start:prod:client

# Sale/Shipper app
NODE_ENV=production pnpm start:prod:sale

Support

Nest 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.

Stay in touch

License

Nest is MIT licensed.

About

Servers of Chillin' Coffee including 3 HTTP server and Socket server using NestJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages