Jobs
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.
index.ts
https://Fatima--fdc2aeba310d11f0a09e569c3dd06744.web.val.run
A simple application that allows users to:
- Post job opportunities
- View all job postings
- Participate in a public chat room to discuss opportunities
- Job posting form (title, company, description, contact info)
- Job listings page
- Public chat room
- Simple user identification (nickname-based)
- Backend: Hono API framework
- Database: SQLite for storing job postings and chat messages
- Frontend: HTML/JS with Tailwind CSS for styling
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Schema definitions
│ │ └── queries.ts # DB query functions
│ ├── routes/ # Route modules
│ │ ├── jobs.ts # Job posting endpoints
│ │ ├── chat.ts # Chat message endpoints
│ │ └── static.ts # Static file serving
│ └── index.ts # Main entry point
├── frontend/
│ ├── components/
│ │ ├── jobs.js # Job listing and form components
│ │ └── chat.js # Chat room component
│ ├── index.html # Main HTML template
│ ├── app.js # Frontend JS entry point
│ └── style.css # Additional styles
└── shared/
└── types.ts # Shared types and utilities
GET /api/jobs
- List all job postingsPOST /api/jobs
- Create a new job postingGET /api/chat
- Get chat messagesPOST /api/chat
- Post a new chat message