Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.05 KB

README.md

File metadata and controls

55 lines (33 loc) · 1.05 KB

Weather API

Test task for Middle Ruby on Rails Developer position

Technologies

Rails 6+, Grape, Rufus, RSpec, VCR, Swagger, Docker, Postman

Third-party API - https://developer.accuweather.com/apis.

Run Locally

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

screenshot

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#

screenshot