Skip to content

lenowng/serverless-aws-nodejs-typescript

Repository files navigation

Serverless AWS NodeJS+Typescript

This template utilize YAML file as Serverless Framework config.
For Typescript config, (delete serverless*.yaml after running the command) run:
npx serverless-yaml2ts

Quickstart

  1. Clone this project
  2. Install packages: npm install
  3. Run local: sls offline -s dev
  4. Start developing 🎉

Environment Variables

(https://www.serverless.com/framework/docs/environment-variables)
Project enviroment variables will be injected when bootstrapping from file as structured:

# .env.dev
FOO=BAR
HELLO=WORLD
  • filename:.env.{stage} will define which file to inject during the bootstrap (e.g. .env.dev gets picked up during sls offline -s dev)
  • For sls deploy, required environments has to be defined in Serverless config file (read here)
  • Environment variables will be injected regardlessly during sls offline

About

Working skeleton of Serverless AWS project stacked with Eslint, Prettier, Typescript and Webpack5

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published