Skip to content
This repository has been archived by the owner on Jul 8, 2018. It is now read-only.

suricats/surirobot-api-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather API for Surirobot

Overview

This API uses Dark Sky API to retrieve weather for a given location

Requirements

  • NodeJs >= 8

Setup

Run in the console:

git clone [email protected]:suricats/surirobot-api-weather.git service-weather
cd service-weather
npm install
cp src/config.js.example src/config.js

Fill src/config.js with your Recast API KEY and choose the server port or use the suri downloader:

cp .env.example .env
nano .env
tools/get-credentials.sh

Running the server

To run the server, run:

npm start

Documentation

To view the Swagger UI interface, open a browser and access:

https://weather.api.surirobot.net/docs

You can also find the Swagger file at:

api/swagger.yaml