This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
ruby 2.7.2rails, ~> 6.1.4, >= 6.1.4.1 -
System dependencies
- Production
bcrypt ~> 3.1.7jsonapi-serializerfigarofaraday
- Testing
capybarawebmockvcrshoulda-matchersrspec-rails
- Production
-
API's
- OpenWeather API *
- MapQuest Geocoding API **
- MapQuest Directions API **
- UnSplash Photo API *
- Bored API
*requires API key **requires same API key
-
Configuration
git clone git@github.com:eakischuk/sweater_whether.gitbundle installrails g rspec:installbundle exec figaro install- add api keys to
config/application.yml
-
Database creation - postgreSQL
rails db:{create,migrate}
-
How to run the test suite
bundle exec rspec
-
Endpoints
- get /api/v1/forecast
- params: location (string)
- get /api/v1/backgrounds
- params: location (string)
- post /api/v1/users
- params: as json body
- email, password, password_confirmation
- returns api_key for user
- params: as json body
- post /api/v1/sessions
- params: as json body
- email, password
- params: as json body
- post /api/v1/road_trip
- params: as json body
- origin, destination, api_key
- params: as json body
- get /api/v1/forecast
-
Deployment instructions
- can be tested on using Postman with http://localhost:3000 by running
rails s
- can be tested on using Postman with http://localhost:3000 by running