A simple todo app as a progressive web app.
- Bootstrap 5 for layout and styling
- Create/delete tasks
- TODO list is cached using indexedDB API
- Service worker provides near-instant load times and download/add-to-home capabilities
git clone [email protected]:wdzajicek/todo-pwa.git
cd todo-pwa
npm i && bundle i
Changes to _config.yml
, webpack.config.js
, postcss.config.js
, package.json
, require the build process be stopped and then restarted.
Do not push a development build to the GitHub repo.
Running a development build:
npm run development
- Compiles a development JS bundle
- Compiles SASS
- Creates a local server (
http://localhost:3002
) - Watches for file changes
Running a production build:
npm run production
- Compiles a production/minified JS bundle
- Compiles SASS
- Creates a local server (
http://localhost:3002
) - Watches for file changes
- Run the
gh-pages
script. - Copy everything in
_site/*
intodocs/*
. - Add files, commit, & push
To run a build for GitHub pages, run the following script already defined in package.json
:
npm run gh-pages
After the build runs, copy the entire contents of the _site/
directory containing the new gh-pages
build and paste it into docs/
.
Next, add the changes to a new commit and push to the master branch (GitHub pages is setup for master
in ./docs/
.)