Skip to content

Application for fetching weather data by city name from external API.

Notifications You must be signed in to change notification settings

georgiybykov/weather

Repository files navigation

Weather CI

Application for fetching weather data by city name from https://openweathermap.org/ external API.

Installation

You should have an account on https://openweathermap.org/.

Create an APP_UNIQUE_API_KEY at https://home.openweathermap.org/api_keys page.

$ git clone git@github.com:georgiybykov/weather.git
$ cd weather

# Create `.env` file to store sensitive ENV variables and add your `APP_UNIQUE_API_KEY` there:
$ echo 'export OPEN_WEATHER_API_KEY=APP_UNIQUE_API_KEY' >> .env
$ source .env

# Install and compile dependencies:
$ mix do deps.get, deps.compile

# Create and migrate your database:
$ mix ecto.setup

# Start Phoenix endpoint with:
$ mix phx.server

# or inside IEx with:
$ iex -S mix phx.server

Now you can visit localhost:4000 from your browser.


For example:

Weather search:

Weather search

With user authentication:

With uset authentication

About

Application for fetching weather data by city name from external API.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published