A tiny self-hosted web app for tracking the checklist from Summer of CCNA Study Plan.pdf.
The app is intentionally simple:
server.jsis a dependency-free Node.js HTTP server.public/contains the PWA user interface, manifest, service worker, and icons.data/checklist.jsoncontains the default checklist data.deploy/contains example Ubuntusystemdand nginx configuration.
Progress is saved by writing JSON to disk. On a server, keep that writable data file outside the application folder so app updates do not overwrite it.
Task notes autosave while you type, and open note editors stay visible during autosave.
- Node.js 20 or newer
- Ubuntu server with
systemdand nginx for the deployment flow below - A domain name pointed at your server if you want HTTPS
No npm install step is needed because the app has no runtime dependencies.
From the project folder:
npm startThen open:
http://127.0.0.1:8088
Useful environment variables:
HOST=127.0.0.1 PORT=8088 CCNA_DATA_FILE=/path/to/checklist.json npm startHOSTdefaults to127.0.0.1.PORTdefaults to8088.CCNA_DATA_FILEdefaults todata/checklist.jsonin this repo.
These commands install the app at /opt/ccna-progress, run it as a locked-down system user, store progress at /var/lib/ccna-progress/checklist.json, and expose it through nginx.
Replace ccna.example.com with your own domain.
Install Node.js 20, npm, and nginx:
sudo apt update
sudo apt install -y curl ca-certificates
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs nginx
node --version
npm --versionThe included service file uses /usr/bin/node. Confirm that path exists:
which nodeIf your Node binary is somewhere else, edit deploy/ccna-progress.service before copying it to /etc/systemd/system/.
From your workstation, copy the repo to the server:
rsync -av --delete ./ user@your-server:/tmp/ccna-progress/Then on the server:
sudo mkdir -p /opt/ccna-progress
sudo rsync -av --delete /tmp/ccna-progress/ /opt/ccna-progress/You can also use git clone directly on the server if the repository is available there.
sudo useradd --system --home /opt/ccna-progress --shell /usr/sbin/nologin ccna-progress
sudo mkdir -p /var/lib/ccna-progress
sudo cp /opt/ccna-progress/data/checklist.json /var/lib/ccna-progress/checklist.json
sudo chown -R ccna-progress:ccna-progress /opt/ccna-progress /var/lib/ccna-progressIf you are redeploying an existing install, do not overwrite /var/lib/ccna-progress/checklist.json unless you intentionally want to reset progress.
sudo cp /opt/ccna-progress/deploy/ccna-progress.service /etc/systemd/system/ccna-progress.service
sudo systemctl daemon-reload
sudo systemctl enable --now ccna-progress
sudo systemctl status ccna-progressCheck the local health endpoint:
curl http://127.0.0.1:8088/healthExpected response:
{"ok":true}Edit the server name in the example config:
sudo nano /opt/ccna-progress/deploy/nginx.confChange this line:
server_name ccna.example.com;Then enable the site:
sudo cp /opt/ccna-progress/deploy/nginx.conf /etc/nginx/sites-available/ccna-progress
sudo ln -s /etc/nginx/sites-available/ccna-progress /etc/nginx/sites-enabled/ccna-progress
sudo nginx -t
sudo systemctl reload nginxOpen your domain in a browser. You should see the tracker UI.
After DNS points to your server, install Certbot and request a certificate:
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d ccna.example.comCertbot will update nginx and set up certificate renewal.
Production progress should remain in /var/lib/ccna-progress/checklist.json. Do not replace that file during app updates unless you intentionally want to reset the checklist.
Before updating, make a timestamped backup:
sudo mkdir -p /var/lib/ccna-progress/backups
sudo cp /var/lib/ccna-progress/checklist.json "/var/lib/ccna-progress/backups/checklist.$(date +%Y%m%d-%H%M%S).json"If you deploy by copying files from your workstation, copy the app to a temporary folder first:
rsync -av --delete ./ user@your-server:/tmp/ccna-progress/Then, on the server, sync the app folder without touching the production data file:
sudo rsync -av --delete /tmp/ccna-progress/ /opt/ccna-progress/
sudo chown -R ccna-progress:ccna-progress /opt/ccna-progress
sudo chown ccna-progress:ccna-progress /var/lib/ccna-progress/checklist.jsonIf the repository is cloned directly on the server, update it from /opt/ccna-progress:
cd /opt/ccna-progress
sudo git pull
sudo chown -R ccna-progress:ccna-progress /opt/ccna-progress
sudo chown ccna-progress:ccna-progress /var/lib/ccna-progress/checklist.jsonRestart the service and verify health:
sudo systemctl restart ccna-progress
curl http://127.0.0.1:8088/healthExpected response:
{"ok":true}If deploy/ccna-progress.service changed, copy it again and reload systemd:
sudo cp /opt/ccna-progress/deploy/ccna-progress.service /etc/systemd/system/ccna-progress.service
sudo systemctl daemon-reload
sudo systemctl restart ccna-progressIf deploy/nginx.conf changed, copy it again, test nginx, and reload:
sudo cp /opt/ccna-progress/deploy/nginx.conf /etc/nginx/sites-available/ccna-progress
sudo nginx -t
sudo systemctl reload nginxAfter frontend changes, refresh the browser. If the UI still looks old, unregister the old service worker or clear the site data in the browser; the app also bumps public/sw.js cache names when app shell assets need a clean refresh.
The progress you care about lives here:
/var/lib/ccna-progress/checklist.json
Back it up before server maintenance or app updates:
sudo cp /var/lib/ccna-progress/checklist.json /var/lib/ccna-progress/checklist.backup.jsonView service logs:
sudo journalctl -u ccna-progress -fRestart the app:
sudo systemctl restart ccna-progressVerify nginx can reach the Node service:
curl http://127.0.0.1:8088/healthCommon things to check:
- The
ccna-progressservice is running. - Port
8088is not already used by another local service. /var/lib/ccna-progress/checklist.jsonexists and is owned byccna-progress.- nginx
server_namematches your domain. - DNS points to your server before running Certbot.
