Giter Site home page Giter Site logo

todo-list-pwa's Introduction

PWA application / todo list

Getting start

This project uses static HTML / js / CSS to render a SPA (Single Page Application), the followings tools are used to generate and develop those static files.

Init

Run those commands to build and launch the app.

npm install
gulp init

Architecture

Template rendering with ejs, components base architecture with ES6 js classes.

To add a library, run npm install myLib --save file.

Do not forget to run gulp buildJs or npm run build to compile the new main.js file.

All js vendors files are in /node_modules directory.

All scss vendors files are imported in /sass/vendors directory.

All fonts vendors files are imported in /fonts directory.

Gulp integration

Gulp is used to automatize tasks, using nodeJs to process files.

Gulp tasks:

  • Init
    • init (Init the app by downloading / moving all dependencies and build js / css)
  • Vendors npm requirements
    • vendorsDownload (Download vendors dependencies in node_modules directory)
    • vendorsMoveSass (Move sass vendors files into /sass/vendors directory)
    • vendorsMoveFonts (Move fonts vendors files into /fonts directory)
    • vendorsClean (Clean vendors dependencies fonts and sass source files (not in node_modules))
    • vendors (Wrapper for vendorsDownload then vendorsClean then vendorsMoveSass and vendorsMoveFonts)
  • Sass / js build
    • sassDev (Compile sass files and generate map in .css result file)
    • sassProd (Compile sass files in a .css file)
    • buildJs (Build the js source files into /main.js)
  • Watchers
    • watch (Monitor changes in js and sass src and run sassDev or buildJs on files changed)
  • Linter
    • eslint (Lint js files with eslint linter)
  • jsDoc
    • jsdoc (Generate the jsdoc in storage/app/public/jsDoc)

All sass dependencies must be listed in paths const declaration.

Sass

The sass integration is pretty simple here. A main /sass/app.scss is used to required all sass dependencies.

This file is compiled using sass pre-processor and generate a unique /css/style.css file for all you app with the command gulp sassDev or gulp sassProd (without sources map).

You can add as much custom .scss files as you want in /sass directory, be sure to add those files in the main /sass/app.scss file.

Eslint

Natively eslint:all is set in the .eslintrc.json file which can be edited to add / remove js lint rules.

Jsdoc (not implemented)

The jsdoc is automaticaly generated in /jsDoc directory with the commande gulp jsdoc.

ink-docstrap theme is used to generate the documentation.

Jsdoc parameters can be edited in jsdocConfig.json file.

Apllication

The application is a simple todo-list where you can add / edit / remove / order and pinned a note.

Those notes are persisents threw the local storage.

todo-list-pwa's People

Contributors

mister-good-deal avatar

Watchers

James Cloos 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.