jd-delivery-service v1.0.0
Delivery Service
A serverless cloudformation stack.
Dependencies
Please ensure you have globally installed the serverless npm package and setup serverless with your appropriate aws credentials. Here is a helpful link: https://serverless.com/framework/docs/providers/aws/guide/quick-start/.
Deployment
The following describes the steps required to upload this project to it's live server.
First, remove the existing build
folder if present.
rm -rf build
Next, we want to compile our app to https://en.wikipedia.org/wiki/CommonJS.
Navigate to the project root and run the next command:
tsc
After successful compilation we can now deploy the app.
[serverless | sls] deploy [-v | --verbose (optional)]
Removal
The next command will remove our project from live server.
sls remove
Testing
Basic integration testing is possible through our serverless.test.yml
file. After creating or updating a route, be sure to update this file accordingly.
Ensure you have commented out the org
key in serverless.yml
. Then you can test the API by running the following:
sls test
License
4 years ago