LiveViewWeather
Contributors
Setup ENV Variables
Sign up for an API key at the following sites:
- Create
.env
file in the root of your project with this syntax for your keys:
export BING_API_KEY="insert-key-here"
export DARK_SKY_API_KEY="insert-key-here"
- In your terminal run
source .env
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Install Node.js dependencies with
cd assets && npm install
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.