This API uses Dark Sky API to retrieve weather for a given location
- NodeJs >= 8
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
To run the server, run:
npm start
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