dbssetprofile
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
index.ts
https://desniland--7549f990394f11f0aa569e149126039e.web.val.run
A comprehensive student portal built on Val Town with profile management, academics tracking, financial information, social features, and document repository.
- Profile Management: View and edit student profiles with database persistence
- Academics: Track units, examinations, and academic progress
- Finances: Manage fee payments and view fee structures
- Socials: Events, news, clubs, and projects
- Repository: Access to logbooks, insurance, and mentor letters
βββ backend/
β βββ index.ts # Main Hono server
β βββ database/
β β βββ schema.ts # Database schema and migrations
β β βββ queries.ts # Database query functions
β βββ routes/
β βββ profile.ts # Profile management routes
β βββ academics.ts # Academic data routes
β βββ finances.ts # Financial data routes
β βββ socials.ts # Social features routes
β βββ repository.ts # Document repository routes
βββ frontend/
β βββ index.html # Main profile page
β βββ components/
β β βββ ProfileEditor.tsx # Profile editing component
β β βββ OptionModals.tsx # Enhanced option modals
β βββ style.css # Styles
βββ shared/
βββ types.ts # Shared TypeScript types
- The backend automatically creates the database tables on first run
- Access the profile page at the root URL
- Use the API endpoints to manage data
GET /api/profile/:id
- Get student profilePUT /api/profile/:id
- Update student profileGET /api/academics/:studentId
- Get academic dataGET /api/finances/:studentId
- Get financial dataGET /api/socials/events
- Get eventsGET /api/repository/:studentId
- Get documents