yelp-rest v0.1.0
yelp-rest is a lightweight, easy to deploy REST wrapper for Yelp 2.0 API.
Run
To run the server do the following:
- Clone the repo
- Create
.envfile in the same place as.env-example(root directory) - Put your environment variables in
.envfile, e.g.Yelp Mange API accessstuff - Install major dependencies
npm install --production - Fire
npm start - Navigate your browser to
http://localhost:3000/api/search?lat=40.75493&lng=-73.98878&restaurant=chineese. Don't forget to change port if you specified different than3000in your.envfile
Development
Repo destributed prebuilded so that you do not have to install everithing including devDepencencies to run the server.
If your prefer to build everything by yourself and/or doing source editings:
Install all dependencies:
npm installAfter installation of devDependencies you wil be abble to edit and build sources, check code style and run tests.
For rebuilding and restarting during development:
npm run watchFor production building:
npm run buildFor testing:
npm testFor code style checking:
npm run lintSources distributed with .ide directory containing WebStorm settings to easily achive same development experience
with other WebStrorm users.
For JSDoc generation:
npm run jsdocIt generates jsdoc directory in the root of the project
License
MIT.
See Also
- How to use Yelp's API with Node: https://arian.io/how-to-use-yelps-api-with-node/.
- yelp-api: https://github.com/Yelp/yelp-api.
- node-yelp: https://github.com/olalonde/node-yelp.
10 years ago