https://github.com/guumaster/elm-weather-exercise
A Weather Exercise in Elm
https://github.com/guumaster/elm-weather-exercise
Last synced: 12 months ago
JSON representation
A Weather Exercise in Elm
- Host: GitHub
- URL: https://github.com/guumaster/elm-weather-exercise
- Owner: guumaster
- Created: 2016-09-14T20:51:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T06:58:44.000Z (about 9 years ago)
- Last Synced: 2025-04-08T10:11:16.776Z (over 1 year ago)
- Language: Elm
- Size: 229 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elm-weather-exercise
A simple Weather app in [Elm](http://elm-lang.org/).
This app exists to contrast differences between a simple React example vs an Elm example.

### Install:
Clone this repo into a new project folder, e.g. `elm-weather-exercise`, and install its dependencies:
```
git clone https://github.com/guumaster/elm-weather-exercise
cd elm-weather-exercise
npm install
```
If you haven't done so yet, install Elm globally:
```
npm install -g elm
```
Install Elm's dependencies:
```
elm package install
```
### Serve locally:
```
npm start
```
* Access app at `http://localhost:8080/`
* Get coding! The entry point file is `src/elm/Main.elm`
* Browser will refresh automatically on any file changes..
### Build & bundle for prod:
```
npm run build
```
* Files are saved into the `/dist` folder
* To check it, open `dist/index.html`