Task 4 - integration with NoSQL #2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task 4.1.
./scripts/dynamo/fill-tables.sh
;Task 4.2
Task 4.3
{ "id": "6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b", "title": "Just test", "description": "Improving the Design of Existing Code shed light on the refactoring process, describing the principles and best practices for its implementation.", "price": 25, "count": 8 }
Additional tasks:
{ "message": "Product with id 23 not found" }
;return errorResponse(err);
). errorRespose uses status code 500 by default;./src/handlers
):console.log('Incoming request', event);
./scripts/postgres
. To switch between DynamoDB and Postgres it is enough to flipUSE_NOSQL_DB
environment variable in every lambda or just redeploy the stack with the new value, for exampleUSE_NOSQL_DB=false
- in this case the Postgres-specific implementation will be used.Swagger documentation updated and can be found here:
./product-api.json
Front-end (uses the last backend code and data): https://d1eot7ucp9tkae.cloudfront.net
Front-end PR (just in case): bwire/nodejs-aws-shop-react#2