How htl23pernsteiner/dewit---todo-app works
Dewit is a todo and note-taking app with authenticated, per-user notes, priorities, a My Day focus, search/filtering and calendar views. The main workflow is users opening the web app, signing in, then managing notes through the frontend API client; the Express API authenticates requests and persists data in PostgreSQL. An alternate localStorage frontend supports offline development. The README documents Nginx and the frontend/backend/database arrangement; source excerpts show the API’s database and authentication calls, but do not show all page wiring.
Main entry points: server.js REST API · script-api.js API client and views · nginx.conf Nginx web server · index.html Todo app page
Components 11
Web application
- Nginx web server
nginx.conf - Todo app page
index.html - Login page
index-login.html - API client and views
script-api.js - Offline localStorage app
script.js
Backend API
- REST API
backend/server.js - JWT and passwords
backend/auth.js
Persistence
- PostgreSQL pool
backend/db.js - PostgreSQL notes and users
backend/schema.sql
Other components
- User
- Browser localStorage
Connections 10
- User → Nginx web server: opens app
README.md - Nginx web server → Todo app page: serves frontend
README.md - User → Login page: signs in
README.md - Login page → API client and views: uses auth client
- Todo app page → API client and views: loads client
- API client and views → REST API: calls API
README.md - REST API → JWT and passwords: uses auth helpers
backend/server.js - REST API → PostgreSQL pool: queries pool
backend/server.js - PostgreSQL pool → PostgreSQL notes and users: connects to
backend/db.js - Offline localStorage app → Browser localStorage: reads and writes
script.js