Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lunarlogic/flux-challenge-elm
Implementation of the flux challenge written in Elm
https://github.com/lunarlogic/flux-challenge-elm
elm flux-challenge
Last synced: 2 days ago
JSON representation
Implementation of the flux challenge written in Elm
- Host: GitHub
- URL: https://github.com/lunarlogic/flux-challenge-elm
- Owner: LunarLogic
- License: mit
- Created: 2020-06-22T10:03:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T13:03:05.000Z (over 4 years ago)
- Last Synced: 2024-11-09T20:12:53.347Z (about 2 months ago)
- Topics: elm, flux-challenge
- Language: Elm
- Size: 219 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# flux-challenge-elm
A solution to [flux-challenge](https://github.com/staltz/flux-challenge) written in Elm.
## First time setup
From the root of the repo:
```
$ yarn && cd backend && yarn && cd ..
```## Starting the app
You need to start both the backend and the frontend server. After starting them, the app is going to
be available under [http://localhost:8000](http://localhost:8000).### The frontend server
Responsible for serving Elm code.
```
$ yarn start
```### The backend server
Responsible for serving siths & planets.
```
$ cd backend && yarn start
```## Running tests
```
$ yarn elm-test
```### Automatically re-run tests on code changes
```
$ yarn elm-test --watch
```## Formatting the Elm code
`yarn format` formats the code using [elm-format](https://github.com/avh4/elm-format). You can set
up [an editor integration](https://github.com/avh4/elm-format#editor-integration) so that your
editor is going to run it automatically on save.## Solution
To view the complete solution to this challenge, start the servers and then go to
[http://localhost:8000/solution/staltz/](http://localhost:8000/solution/staltz/).