Test task for Middle Ruby on Rails Developer position
Rails 6+, Grape, Rufus, RSpec, VCR, Swagger, Docker, Postman
Third-party API - https://developer.accuweather.com/apis.
Clone the project
git clone git@github.com:muromski/weather_api.git
Go to the project directory
cd weather_api
Rename .env.example
file to .env
You should have credentials to become an access to third-party API. You can get your own API_KEY after registration https://developer.accuweather.com/
Build docker-compose
docker-compose build app
Run docker-compose
docker-compose up -d
Run tests
docker-compose exec app bin/rails spec
RPS metrics are located in the metrics
folder
The Postman collection for API testing is located at the root of the project
Swagger documentation is located at http://localhost:3000/swagger#