React Weather App

Created based on this sample.

Rquirements

  • algolia account(App ID, API Key)
  • Dark Sky API account(API Key)

Setup

Create .env from .env.example

dotenv

Set your Dark Sky API key to DARKSKY_KEY.

// ...

DARKSKY_KEY="your-api-key"

Create config.js from config.example.js

config.js

Set your algolia App ID, API key to config.js.

export default {
  algolia: {
    appId: 'your-app-id',
    key: 'your-app-key'
  },
}

Run

$ php artisan serve

# in another tab
$ npm run watch

References