https://github.com/andrea-lascola/serverless-typescript-template
Serverless project template, includes boilerplate for: unit test, tslint, inversifyjs, coverage
https://github.com/andrea-lascola/serverless-typescript-template
aws lambda mocha serverless serverless-framework typescript
Last synced: 3 months ago
JSON representation
Serverless project template, includes boilerplate for: unit test, tslint, inversifyjs, coverage
- Host: GitHub
- URL: https://github.com/andrea-lascola/serverless-typescript-template
- Owner: andrea-lascola
- Created: 2019-05-27T13:12:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T05:50:07.000Z (over 3 years ago)
- Last Synced: 2025-08-13T07:35:55.304Z (11 months ago)
- Topics: aws, lambda, mocha, serverless, serverless-framework, typescript
- Language: TypeScript
- Size: 1.86 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-typescript-template
This project is a serverless template that allow you to start a simple http api with these features included:
- serverless **offline** cli and plugin
- inversion of control(with **inversify**)
- typescript transpilation (**webpack + watcher**)
- **unit test** with mocha/chai/nyc(for test coverage)
- **tslint**
Basicly i didn't want to redo the setup(test/tslint etc..) every time i build a new service so this template should fasten the setup a bit.
## How to
just:
$ serverless create --template-url https://github.com/andrea-lascola/serverless-typescript-template --path myService
$ cd myService && npm i
after that you can:
$ npm start // start the service with hot reload -> curl http://localhost:3000/test
$ npm test // run unittests with mocha/chai
$ npm run coverage && open coverage/index.html // open coverage report
### TODO
* add dependency for logger / performance