Giter Site home page Giter Site logo

prateek-js / vanilla-js-demo-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from albinotonnina/vanilla-js-demo-app

0.0 0.0 0.0 234 KB

Vanilla JS demo app

Home Page: https://vanilla-js-demo-app.herokuapp.com/

JavaScript 70.85% CSS 26.95% HTML 2.21%

vanilla-js-demo-app's Introduction

Vanilla JS demo app

Build Status codecov

๐Ÿš€ blazing fast, ๐Ÿ—œ tiny (bundle: 40 kb) simple imaginary app.

Apart from idb-keyval (promise based keyval store for data persistency, < 600 bytes) and express (web framework + API), this app has no dependencies.

At the core it works with an implementation of the Observer Pattern, more specifically the Publish / Subscribe one: this simple dispatcher is used to broadcast messages to multiple subscribers.

UI events and data/model events are mixed. Also, without a proper UI framework, playing around with the DOM gives this app a certain imperative flavour. Unlikely a good choice in a real world app. React/Vue apps would be best.

There is an express server to serve a simple api.

Demo online

View demo on Heroku

Getting started

Install and launch tests:

yarn && yarn test

Launch dev server on port 8080:

yarn start

yarn build builds for production

yarn size-limit check if the bundle is under 50k

Tools

No dependencies but the tooling part is fairly similar to a real world FE app:

  • webpack + babel
  • sass + postcss (autoprefixer)
  • jest (test + coverage)
  • lint-staged (eslint + prettier on pre-commit)
  • w3c-validate
  • integration with travis ci, codecov and heroku.

Notes

w3c tests are skipped at the moment. There is a connection to a w3c service that sometimes goes off.

Maintainers

@albinotonnina

Contribute

PRs not accepted.

License

Do not use. This repo is going to disappear soon.

vanilla-js-demo-app's People

Contributors

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