A mini blog made using only Elm 0.19.1!
Check out the demo at dptole.ngrok.io/elm-blog/.
This is meant to be a learning project in order to slowly shift from OP to FP, or at least learn more about it.
In my opinion Elm (FP) is way simpler than OP, more elegant and more flexible when combining different modules or using their singular features/functions while still strickly sticking to the architecture.
Files | Lines Of Code | Size | Served via HTTP |
---|---|---|---|
Elm | 17k+ | 416kb+ (frontend) | Compressed (brotli) 43kb |
JavaScript | 4.6k+ | 114kb+ (backend) | N/A |
All the CSS comes from Elm and update according to the model.
The blog uses Elm for the frontend and Nodejs, with no dependencies, for the backend.
Installing the blog locally will open up a server at http://localhost:9090/elm-blog/.
Requirements:
- Nodejs 12+
- Uglifyjs 3.6.4 (
npm i -g uglify-js@3.6.4
) - Elm 0.19.1
git clone https://github.com/dptole/elm-blog
bash elm-blog/run.sh
To know more about the local building process visit the wiki.
In order to easily recreate the blog locally you can use the docker installer here and a local server will be available at http://localhost:9090/elm-blog/ (prod with Nodejs) and http://localhost:8080/src/Main.elm (dev with elm reactor).
git clone https://github.com/dptole/elm-blog
bash elm-blog/docker/install-container.sh
If you want to know more info about the install-container.sh
process go to the docker wiki.
MIT.