Pages' simple carousel based on iframes
and written in the Elm language.
Prepare small application, which could presents a carousel (like a: Bootstrap Carousel) of few pages loaded in to iframes
.
Show should be done in given order with a few seconds of display.
Users can prepare those carousels of pages and share with others.
"Kanban" board at: Carouselm@Trello.
Requirements:
- Should be stateless.
- All information should be stored in the
URL
, so "show" could be shared by users. - There is no requirement for any back-end, just the web server which serves static
HTML
,JS
orCSS
for this application.
- All information should be stored in the
- Should have two sides: edit and show.
- edit - Allows to edit list of pages or time interval. Also enables way to copy show's
URL
and just go to show page. - show - Just displays Carousel of pages based on data from
URL
. Also enables way to just go to edit page.
- edit - Allows to edit list of pages or time interval. Also enables way to copy show's
- Initial page should move to the empty edit.
- Also on both sides (edit, show) should be available button to create new show.
- State should be stored in the
URL
.- Data will be compressed and represent as Base64.
- Mostly written in the Elm.
- Elm is Haskell for web - could I say that?
- Because this is a Elm's experiment.
- I would like to try Elm language.
- Install Node JS, via Chocolatey:
- Install Elm, via NPM from Node:
- To run tests please install:
- For a nice work in the VS Code you need:
- Sascha Brink's the
elm
code's extension - and also:
$ npm install -g elm-format
- Sascha Brink's the
- To run this project just type:
$ elm reactor
, and then go to:http://localhost:8000/src/Main.elm
- To run tests of this project just type:
$ elm-test
- In some folder with "empty" git repository, just type:
$ elm-package install
- Then a file:
elm-package.json
need to be fixed.- I've changed fields:
version
,summary
andlicense
. - A
repository
filed is "broken" because it requires the GitHub repository link with only small letters... so it's not so true value there. - Also I've added in the:
source-directories
value:src
, where all code source will be stored.
- I've changed fields:
- Then was executed:
$ elm-test init
which prepares sub-project with Test suite.- Warning about existing file:
.gitignore
should be ignored - it tries create file only with an entry:elm-stuff/
.
- Warning about existing file: