quick-markdown-tester
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.
A simple web application that demonstrates form submission and server response echoing.
- Frontend form with textarea input
- Real-time form submission via JavaScript
- Backend API that echoes submitted text
- Clean, responsive UI with Tailwind CSS
- Error handling and loading states
├── backend/
│ └── index.ts # Hono server with API endpoints
├── frontend/
│ └── index.html # Main HTML page with form
└── README.md
- User enters text in the textarea
- Form submits via JavaScript to
/api/echo
endpoint - Backend receives the text and echoes it back with metadata
- Frontend displays the server response next to the form
GET /
- Serves the main HTML pagePOST /api/echo
- Accepts JSON withtext
field, returns echoed response
The application is accessible via the HTTP trigger on the backend. Simply visit the URL and use the form to submit text and see it echoed back.