GithubHelp home page GithubHelp logo

yadalis / elm-ecommerce Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucamug/elm-ecommerce

0.0 0.0 0.0 153 KB

A simple eCommerce demo application in 2,500 lines of Elm code, all shrank into 40KB of JavaScript, including styling and icons.

Home Page: https://elm-ecommerce.guupa.com

License: Other

Shell 1.25% Elm 98.75%

elm-ecommerce's Introduction

Elm eCommerce

๐Ÿ‡๐Ÿ‰๐Ÿ๐ŸŠ๐Ÿ‹๐ŸŒ๐Ÿ๐ŸŽ๐Ÿ๐Ÿ‘๐Ÿ’๐Ÿˆ๐Ÿ“๐Ÿฅ

A simple eCommerce demo application in 2,500 lines of Elm code, all shrank into 40KB of JavaScript, including styling and icons.

picture

Characteristics

  • Responsive
  • Cart and Favorites management
  • Persistent (local storage)
  • Synced across tabs
  • Light / Dark mode
  • Bilingual
  • Searchable/Sortable results
  • Dashboard (+1,100 lines of Elm)
  • Atomic design
  • Fault tolerant

It is made of

2,500 lines of Elm
    0 lines of CSS
   25 lines of JavaScript
   15 lines of HTML

Links

Prerequisites

Install Node.js.

All other commands should work without installation as they are using npx. In case there are some issues you can install the required application executing:

Optional installations for the development

Optional installations for building the optimized version to be released

To set up the development environment

git clone https://github.com/lucamug/elm-ecommerce.git
cd elm-ecommerce
cmd/start

Then access http://localhost:8000/

Edit src/Main.elm and the browser will update automatically.

To start the Dashboard

cmd/startDashboard

Then access http://localhost:8001/

Edit src/Dashboard.elm and the browser will update automatically.

To build an optimized version

cmd/build

This will create two folders, build/normal and build/dashboard that can be used to publish the application.

You can see these two versions of the application here:

โค๏ธ๐Ÿ˜ƒ HAPPY CODING! ๐Ÿ˜ƒโค๏ธ

elm-ecommerce's People

Contributors

lucamug 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.