git clone https://github.com/xetera/serverless-typescript-starter
cd typescript-starter
npm install
npm run dev
- http://localhost:3000/example
If you need to use environment variables, you can copy the .env.example
file
over to .env
to have serverless automatically load your variables. For more information
head over to the serverless-dotenv-plugin repo.
This will get you running the offline testing mode for your serverless function. Check out the serverless framework docs for deploying your functions to the cloud.
Run npm t
to run built-in jest unit tests.
- Dotenv
- Winston
Starter generated from typescript-starter