/template-web-app-parcel

A template to create web applications on Node.js with Parcel.js as the bundler [out-of-sync]

Primary LanguageJavaScriptOtherNOASSERTION

template-web-app-parcel

License: CC BY-NC-SA 4.0

A template to create web applications on Node.js with Parcel.js as the bundler

Technologies

Server

Express as the web server with body parser to serve static resources.

Client

Web Application

Module bundler: Parcel

All you need is parcel-bundler and it takes care of almost everything implicitly.

A few other packages
Commands
  • npm run develop to instruct parcel-bundler to build the website, keep watching for file changes within the source and reload the web-browser on every change.
  • npm run live to instruct parcel-bundler to build the website, keep watching for file changes within the source and reload the web-browser on every change.
    In this mode, parcel-bundler also starts a web-server of its own.
    Please note that Express is not the web-server in this mode and hence any web-services implemented in "src\server\index.js" will not work.
  • npm run build to instruct parcel-bundler to build the website and stop.
  • npm run lint to run ESLint on all JavaScript source files.

To-Do

  • Find a way to generate source-maps
  • Find a way to copy favicon.ico and other data for the website
  • Find a way to write and run tests