Serverless Nestjs Starter

使用 serverless + nestjs + postgres 研发一个后端应用,可直接部署到腾讯云

serverless-nestjs-starter

PRs Welcome Using serverless + nestjs + postgres to build a backend app.

Table of Contents

Install

sls create --template-url https://github.com/FEMessage/serverless-nestjs-starter.git 

# or
sls create --template-url https://github.com/FEMessage/serverless-nestjs-starter.git --path my-serverless-project

Dev

cd api

yarn 

# setting env var: STAGE=dev and PG_CONNECT_STRING=your-connection
vi .env 

yarn dev

⬆ Back to Top

Deploy

cd api

yarn build

# in project root dir
cd ..

sls deploy

⬆ Back to Top

⬆ Back to Top

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

⬆ Back to Top

License

MIT

⬆ Back to Top