minimal choo boilerplate code.
npm i choo-boilerplate -g
This is some simple boilerplate code for using choo js to make a single page application. This is a much simpler alternative to using bankai or create-choo-app that does not include a service worker.
- fully functioning choo single page app with routing
- build command using browserify and sheetify transform
- tachyons - functional css
- choo-persist - automatically store choo state to local storage
- babel polyfill - support older browsers
- environment variables for switching between development and production
- choo devtools
- offline first functionality
- any manifest or PWA functionality
- cache or service worker
> choo-boilerplate
> => provide your app name
git clone https://github.com/m-onz/choo-boilerplate
cd ./choo-boilerplate
npm i
npm run build
npm run watch
npm run serve
The server is on http://localhost:8000
* needs python installed.
To deploy this repo you need the index.html
and scripts/bundle.js
files. Upload
them via a CDN or static website hosting. Works well as an S3 bucket website or
using services like netlify.
Only the bundle.js is needed to create the entire app so you are free to use inline javascript or alternatively mount the app onto an HTML element within an existing app.
Learn more about choo and how to use it on the official website.