secondval
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
A full-stack application for posting job opportunities and discussing them in a public chat room.
- Job Postings: Create, view, and manage job postings
- Public Chat: Real-time chat room for discussing opportunities
- Responsive Design: Works on desktop and mobile devices
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema setup
│ │ └── queries.ts # Database query functions
│ ├── routes/
│ │ ├── jobs.ts # Job posting API routes
│ │ └── chat.ts # Chat API routes
│ └── index.ts # Main Hono server
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main application component
│ │ ├── JobBoard.tsx # Job listings component
│ │ ├── JobForm.tsx # Job posting form
│ │ └── ChatRoom.tsx # Chat interface
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend entry point
└── shared/
└── types.ts # Shared TypeScript types
- Backend: Hono (TypeScript API framework)
- Database: SQLite
- Frontend: React with TypeScript
- Styling: TailwindCSS
- Real-time: Polling-based chat updates
GET /api/jobs
- Get all job postingsPOST /api/jobs
- Create a new job postingDELETE /api/jobs/:id
- Delete a job posting
GET /api/chat/messages
- Get chat messagesPOST /api/chat/messages
- Send a chat message
This app runs on Val Town. The backend serves both the API and static frontend files.