https://github.com/odanieldcs/serverless-boilerplate
A one template of web api node.js serverless with typescript, tests, continuous integration and delivery on GitHub Actions.
https://github.com/odanieldcs/serverless-boilerplate
Last synced: 21 days ago
JSON representation
A one template of web api node.js serverless with typescript, tests, continuous integration and delivery on GitHub Actions.
- Host: GitHub
- URL: https://github.com/odanieldcs/serverless-boilerplate
- Owner: odanieldcs
- Created: 2021-10-21T14:20:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-23T15:14:34.000Z (about 4 years ago)
- Last Synced: 2025-03-10T16:43:31.943Z (about 1 year ago)
- Language: TypeScript
- Size: 699 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless Boilerplate to API Node.js
[](https://coveralls.io/github/odanieldcs/serverless-boilerplate)
[](https://tldrlegal.com/license/mit-license)
This project has been created using the `typescript`, `webpack`, `serverless-offline` and more to make a great boilerplate from serverless apps Node.js.
> **Requirements**: NodeJS `lts/fermium (v.14.x)`. If you're using [nvm](https://github.com/nvm-sh/nvm), run `nvm use` to ensure you're using the same Node version in local and in your lambda's runtime.
### Features
- ESLint and Prettier to check and maintain code quality
- Integration tests with Jest.
- GitHub Actions for run tests and collect coverage.
- GitHub Actions for deploy to AWS.
### Using NPM
- Run `npm i` to install the project dependencies
- Run `npx sls deploy` to deploy this stack to AWS
### Development enviroment
- Run `serverless offline --httpPort 8001` to emulate.
- The application will start on [http://localhost:8001/](http://localhost:8001/)
### 3rd party libraries
- [@serverless/typescript](https://github.com/serverless/typescript) - provides up-to-date TypeScript definitions for your `serverless.ts` service file
- [serverless-offline](https://github.com/dherault/serverless-offline) - plugin emulate [AWS λ](https://aws.amazon.com/lambda) and [API Gateway](https://aws.amazon.com/api-gateway).