An awesome project based on Ts.ED framework
- Yarn 4 workspaces
- AWS Lambda
- Terraform
- Ts.ED - Serverless and Fullstack framework
This project requires some tools to be installed on your machine. Here is a list of the tools you need to install:
# install dependencies
yarn install
This command start the lambda function locally.
yarn start:lambda
- It builds all lambda and create Zip file in the
dist
folder.- It deploys the lambda function on localstack (on start and on file change)
Start full Express.js server:
# start web server
yarn start:www
yarn build:swagger
This command use the packages/www
to generate documentation
To run all tests over the workspace:
yarn test
To run tests for a specific package:
yarn test:lambda
yarn test:controllers
Add the following environment variables to your .env.local
file:
LOCALSTACK_AUTH_TOKEN=<YOUR_LOCALSTACK_AUTH_TOKEN>
To run E2E tests:
yarn start:lambda
yarn test:e2e
Use terraform to deploy the lambda function on AWS.
yarn build:lambda
yarn deploy:lambda
Please read contributing guidelines here.
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
The MIT License (MIT)
Copyright (c) 2016 - Today Romain Lenzotti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.