forms
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://reversa--b166eaac3aec11f095649e149126039e.web.val.run
A comprehensive MERN-based application for managing medical forms with authentication.
- Authentication: LastLogin integration with Google OAuth
- Form Categories:
- CX INSTRUMENTAL (cx transforaminal, cx estenose, cx estenose elliquence)
- CX TOMSHIDI
- CX DE APOIO (cx apoio cervical, cx apoio crânio, cx apoio lombar)
- EQUIPAMENTO
- ARMÁRIO
- ÓTICA (transforaminal, interlaminar, estenose)
- PEÇA DE MÃO
- Shared Components: Fixed header and signature areas across all forms
- API Routes: RESTful endpoints for form data management
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ ├── routes/
│ │ ├── auth.ts # Authentication routes
│ │ ├── forms.ts # Form CRUD operations
│ │ └── static.ts # Static file serving
│ └── index.ts # Main server entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main application
│ │ ├── FormHeader.tsx # Shared form header
│ │ ├── FormSignature.tsx # Shared signature area
│ │ ├── FormSelector.tsx # Form type selector
│ │ └── forms/ # Individual form components
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend entry point
└── shared/
├── types.ts # Shared TypeScript types
└── utils.ts # Shared utilities
- Set up environment variables for authentication
- Run the backend server
- Access the application through the web interface
Uses LastLogin service for Google OAuth authentication. Users must be logged in to access forms.