LoHi: An API designed to consume other APIs, find users current elevation, and adjust stored recipes to account for their altitude
Built in conjunction with our Frontend team as part of our Turing Capstone project
Checkout the Frontend Repo and Deployed Site
- All available endpoints are documented on the Endpoints wiki
- Fork and Clone this repo locally
- Run
$ bundle install $ rails db:{create,migrate} - Figaro is used for holding and hiding API keys for the API's listed below, so Figaro must be installed
$ bundle exec figaro install - This will create a file in your
configfolder labelledapplication.yml. All keys created at API sites will be stored here
- This API project consumes other APIs, three to be exact
- As a result, accounts will need to be made for these API's if you want to use this project locally, or some of the endpoints and tests will fail
- Mapquest was used for it's location and directions endpoints, and needs a developer account for access to both a Consumer Key and a Consumer Secret
- Sign up here: https://developer.mapquest.com/
- Once you have the key and secret, you can put them in your
application.ymllike so:MAPQUEST_ACCESS_KEY: YourMapquestConsumerKey MAPQUEST_SECRET: YourMapquestConsumerSecret
- Open Weather was used for it's One Call API endpoint, used to for detailed forecasts for a given location, and needs a single API key
- Sign up here: https://openweathermap.org/api
- Once you have the key, you can put it in your
application.ymllike so:OPEN_WEATHER_ACCESS_KEY: YourOpenWeatherKey
$ ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin20]
$ rails -v
Rails 5.2.6$ bundle exec rspec -fd$ rails s- From here you may access the endpoints from a utility like
Postman, neccesary for thepostendpoints
- Github: Joana Brito
- LinkedIn: Joana Brito
- Github: Jacob Martinez
- LinkedIn: Jacob Martinez
- Github: Megan McBride
- LinkedIn: Megan McBride
- Github: Jacob Piland
- LinkedIn: Jacob Piland


