Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmarkelov/node-aws-be
https://github.com/mmarkelov/node-aws-be
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mmarkelov/node-aws-be
- Owner: mmarkelov
- Created: 2020-11-02T18:07:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-17T04:22:55.000Z (about 4 years ago)
- Last Synced: 2024-10-18T08:17:40.484Z (2 months ago)
- Language: TypeScript
- Size: 48.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# node-aws-be
Backend for [node-aws-fe](https://github.com/mmarkelov/nodejs-aws-fe/)## Basic
- `serverless.ts` contains configuration for 2 lambda functions, API is working
- The [getProductsList](https://ox1m9ngpvi.execute-api.eu-west-1.amazonaws.com/dev/get-products-list) lambda function returns a correct response
- The [getProductsById](https://ox1m9ngpvi.execute-api.eu-west-1.amazonaws.com/dev/get-product-id/7567ec4b-b10c-48c5-9345-fc73c48a80aa) lambda function return a correct response
- Frontend application is integrated with product service (/products API) and products from product-service are represented on Frontend.## Advanced
- Async/await is used in lambda functions
- ES6 modules are used for product-service implementation
- Webpack is configured for product-service
- SWAGGER documentation is created for product-service (Don't found the way to add it to AWS, so just got `swagger.json` file, you can pastle it to [Swagger Editor](https://editor.swagger.io/))
- Lambda handlers are covered by basic UNIT tests with JEST
- Lambda handlers (getProductsList, getProductsById) code is written not in 1 single module (file) and separated in codebase.
- Main error scenarios are handled by API ("Product not found" error, try catch blocks are used in lambda handlers).