A lot of this project can be run locally using serverless-offline and a local dynamo DB instance.
Run npm i
npm i -g serverless
- ensure you have java engine installed on your machine Get it here
- run
sls dynamodb install
To start the local API you just need to run npm run offline
.
To test the get endpoint you can do a get request to this url
to test the post flight you can post to
http://localhost:3000/dev/flights/b335c8cd-c9bd-4a21-8898-e1a885e2aec6 with the following body
{
"passengers": [
{"name": "test passenger"}
]
}
You can then retry the existing get request