Lambda function to get food truck data from a San Francisco database.
The purpose of this service is to filter approved food truck permits in SF.
- Node 8.10
- serverless 1.38.0 or higher: serverless docs
From within the root directory:
yarn
touch .config.dev.json
Then add something like the following:
{
"dev": {
"GOOGLE_MAPS_APIKEY": "Replace this with your api key"
},
"prod" : {
"GOOGLE_MAPS_APIKEY": "Replace this with your api key"
}
}
From within the root directory:
sls deploy
For more information check the serverless docs
From within the root directory:
Server side testing:
yarn test
For this project I'm using the popular Standard JS Style Guide. Eslint is installed to help keep styles consistent.
Given more time, I would impliment integration tests for the AWS Lambda service. If this were a production quality service the integration tests would be a necessity.
If I could start this project over again, I would have prioritized integration testing sooner. I would use the popular supertest module for this.
- Add ability map Yelp data to a business before returning results.
- Include a deeplink to Yelp for more information.
- This service will only return food trucks located in San Francisco that have currently approved permits.