2.0.0 • Published 4 years ago
choo-boilerplate v2.0.0
choo-boilerplate
minimal choo boilerplate code.
screenshot
install
npm i choo-boilerplate -g
overview
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.
what is included
- 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
what is not included
- environment variables for switching between development and production
- choo devtools
- offline first functionality
- any manifest or PWA functionality
- cache or service worker
how to use it
> choo-boilerplate
> => provide your app name
development instructions
git clone https://github.com/m-onz/choo-boilerplate
cd ./choo-boilerplate
npm i
commands
build the project
npm run build
auto re-build when files changed
npm run watch
serve for development
npm run serve
The server is on http://localhost:8000
* needs python installed.
deployment
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
Learn more about choo and how to use it on the official website.