A service for proxying data with FrontEnd
To run serverless locally...
- Using invoke local:
serverless invoke local -f phone_number -p test_object.json
- Using serverless offline:
The following generates an endpoint, which POST
requests can be sent to passing along a json object in the body
npm install
serverless offline
It can be tested using Postman
- Note:
serverless offline
can be replaced withsls offline
.
You should deploy using Jenkins!!
However, to deploy from your local machine, where dev
can be substituted for the proper environment (e.g. prod
), run..
ENVIRONMENT=dev ./deploy.sh
To run tests, simply run
python -m test