Kickstart your Cloud-native and Serverless project in minutes. This is work in progress
This repository is a result of many lessons from launching variety of Serverless powered applications to the production. It was created according to many best practices and aims to provide developers a rapid start while also being production-ready.
- Written in Typescript, compiled by Webpack using Serverless Webpack plugin. Optimized for huge projects where Out of Memory errors are frequent
- Works fully offline thanks to Serverless Offline and DynamoDB Local ran using Docker Compose
- Testable using Jest
- Interacts with DynamoDB using DocumentClient and DynamoDB Toolbox
- Works with both REST and GraphQL
- Managable - To avoid spaghetti code,
serverless.yml
is divided into logical parts. Functions' code is placed next to their definitions.
Prerequisites:
- Serverless Framework
- Node.js
- Git
Start by pulling this repo using git
:
git clone https://github.com/Dynobase/serverless-dynamodb-api-boilerplate
Or using Serverless Framework:
serverless create --template-url https://github.com/Dynobase/serverless-dynamodb-api-boilerplate --path myService
Once ready, install dependencies:
yarn
After that, start the project locally:
docker-compose up -d # To start DynamoDB local
yarn dev
...
Contributions are more than welcome.
This project is licensed under the MIT License.