How cc-jpg2077/sky888-commercial-spaces works
SKY888 is a tenant-request website and small property-management system. Visitors browse commercial spaces and site details, then submit a request and receive a reference number. Administrators log in to review and decide requests, manage spaces and photos, and update contact settings. The Express app serves the browser interfaces and API; route handlers use SQLite, with authentication and validation support. The route files are sampled only in part, so some feature links below rely on the README’s documented capabilities rather than inspected handler details.
Main entry points: admin.js Admin interface · db.js SQLite data · site.js Public site · public.js Public API
Components 16
Public experience
- Public site
public/js/site.js - Scroll hero
public/js/scroll-hero.js - Request submission
src/routes/public.js
Administration
- Admin interface
public/admin/admin.js - Request dashboard
src/routes/admin.js - Request decisions
src/routes/admin.js - Space management
src/routes/admin.js - Site settings
src/routes/admin.js
Application server
- Public API
src/routes/public.js - Admin authentication
src/routes/admin.js - Sessions and passwords
src/auth.js - Validation and limits
src/util.js - Express app
src/app.js
Persistence
- SQLite data
src/db.js
Other components
- Visitor
- Administrator
Connections 22
- Visitor → Public site: browses and submits
README.md - Public site → Public API: loads site data
README.md - Public site → Request submission: posts request
public/js/site.js - Scroll hero → Public site: expands page
public/js/scroll-hero.js - Request submission → SQLite data: stores request
src/routes/public.js - Public API → SQLite data: reads spaces and settings
src/routes/public.js - Administrator → Admin interface: manages property
README.md - Admin interface → Admin authentication: authenticates
README.md - Admin interface → Request dashboard: searches requests
README.md - Admin interface → Request decisions: accepts or declines
README.md - Admin interface → Space management: manages spaces
README.md - Admin interface → Site settings: edits details
README.md - Admin authentication → Sessions and passwords: uses sessions
src/routes/admin.js - Admin authentication → SQLite data: reads and updates admins
src/routes/admin.js - Request dashboard → SQLite data: reads requests
src/routes/admin.js - Request decisions → SQLite data: records decisions
README.md - Space management → SQLite data: manages spaces and photos
src/routes/admin.js - Site settings → SQLite data: reads and writes settings
src/routes/admin.js - Public API → Validation and limits: validates submissions
src/routes/public.js - Express app → Public API: mounts routes
src/app.js - Express app → Admin authentication: mounts admin routes
src/app.js - Express app → Admin interface: serves static files
src/app.js