How ivanvitalievich/zaklad works
Not Bookmarks is a small local full-stack app for account registration, login, and playful bookmark-product interactions. A visitor uses the browser interface; its JavaScript sends registration and login requests to the Express server, which stores users in SQLite and returns a JWT on successful login. The client keeps that token and sends it when deleting an account. The client also gates product dialogs on login state and displays alerts. The README mentions sessions, but the sampled code uses JWTs; unsampled HTML details are not inferred.
Main entry points: index.js Client interactions · index.html Web page · server.js Auth routes · db.sqlite Users database
Components 9
Browser client
- Web page
index.html - Client interactions
index.js - Product dialog
index.js
Application server
- Express app
server.js - Auth routes
server.js - Token guard
server.js - Account deletion
server.js
Persistent data
- Users database
db.sqlite
Other components
- Visitor
Connections 9
- Visitor → Web page: uses
README.md - Web page → Client interactions: runs
README.md - Client interactions → Auth routes: requests auth
index.js - Auth routes → Users database: reads and writes
server.js - Client interactions → Token guard: requests protected route
index.js - Token guard → Account deletion: permits
server.js - Account deletion → Users database: deletes user
server.js - Client interactions → Product dialog: opens
index.js - Express app → Web page: serves fallback
server.js