GithubHelp home page GithubHelp logo

rpeszek / crud-ex-frontend-elm Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 64 KB

Elm frontend for my polyglot CRUD project

License: MIT License

CSS 36.52% HTML 1.63% Shell 2.08% Elm 59.78%
elm functional-programming example routing single-page-app

crud-ex-frontend-elm's Introduction

Example frontend CRUD project in Elm.
See my CRUD umbrella project: typesafe-web-polyglot.

Features:

  • Almost (since this is Elm) polymorphic CRUD
    • code reuse across crud-ed entities
    • CRUD components agnostic of each other existence
  • Type safe Web
  • Almost-SPA / SPA design

Other Features:

  • Customizable logging of elm runtime interactions

See also: Naming Conventions/Code Review

TODO List:

  • List pagination support
  • Keep rethinking styling and views
    • should I keep using purecss?

Git:
I am using submodules to get dependencies/elm-purecss, elm-purecss project is not available as elm 0.18 package dependency.

Backend companion projects:
crud-ex-backend-yesod.
crud-ex-backend-servant
crud-ex-backent-http4s

To Run in elm-reactor:
0. Install Elm Platform

  1. Start backend server (see backend instructions).
  2. start elm-reactor
  3. point browser to elm-reactor.html

How to Deploy to Yesod:
This primitive and ugly elm_deploy_to_yesod.sh script assumes folder structure in which this project and the yesod project share the same parent folder.

How to Deploy to Servant:
Included primitive elm_deploy_to_servant.sh script assumes folder structure in which this project and the servant project share the same parent folder.

Conclusions (so far):

  • I like Elm a lot ๐ŸŽ†. Combines FP and simplicity!
  • Would like to see
    • more stable language API
    • package manager working with ported (JS FFI) projects
    • language polymorphism (is it FP without denotational abstractions? laws? proof obligations?)

crud-ex-frontend-elm's People

Contributors

rpeszek avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.