Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Rest API sample - Dark Sky

This sample shows how to use a Weather Dark Sky REST API using ScaleDynamics WarpJS SDK, in particular we are loading weather forecast at a specific location.

For more info about the API, refer to https://darksky.net/dev/docs

👉 Try a live demo

Setup

Install

  • Clone the project
  • Go to the warp-samples/darksky directory
  • Run the following commands:
# install deps
$ npm install

# login to ScaleDynamics
$ npx warp login

Get your Dark Sky API key

Run

# run a dev server
$ npm run dev

# build and deploy to production
$ npm run build
$ npm run deploy

Resources