Skip to content

Latest commit

 

History

History
37 lines (35 loc) · 1.17 KB

README.md

File metadata and controls

37 lines (35 loc) · 1.17 KB

This is a boilerplate for new Serverless project. The project structure is descripted below:

The project used mono repo style (lib and services) and using yarn workspace to handle dependencies easily

To install all requires dependencies for lib and all services, run yarn install in the root of the project

/ - root folder
│
└───lib - shared library between services within project
│    │
│    └───dynamodb - dynamoDB mapper model and table classes
│    │
│    └───docs - Swagger and related docs
│    │
│    └───schemas - Joi Schema files
│    │
│    └───utils
│
└───services - Code for APIs
│    │
│    └───service 1
│    │    │
│    │    └───src
│    │    │     └───get.js
│    │    │     └───list.js
│    │    │     └───etc...
│    │    │
│    │    └───package.json
│    │    │
│    │    └───servless.yaml (each service is a separate CF stack)
│    │    │
│    │    └───webpack.config.js
│    │
│    └───service 2
│
└───tests - Tests for services or utils