How v3ctr0r/trabalho_typescript_planejamento-de-viagem works
The repository is a small TypeScript web app presented as travel planning, but the sampled runtime currently manages tasks: users see and add tasks, the browser fetches task data, and an Express API reads it from MySQL. The README also advertises trip/destination registration, dated itineraries and activities, and budget control; those capabilities are not represented in the sampled runtime code. Dashed links mark those documented-but-unverified capabilities. The database schema and HTML were not sampled, so their details are omitted.
Main entry points: main.ts Task screen · api.ts API client · servidor.ts Task routes · banco.ts MySQL pool
Components 12
Browser app
- Task screen
src/main.ts - DOM helpers
src/dom.ts - Task services
src/servicos.ts - Task types
src/tipos.ts - API client
src/api.ts
Task API
- Task routes
api/src/servidor.ts
Persistence
- MySQL pool
api/src/banco.ts - MySQL database
Other components
- User
- Trips & destinations
- Dated itinerary & activities
- Trip budget control
Connections 12
- User → Task screen: uses
src/main.ts - Task screen → DOM helpers: reads and updates
src/main.ts - Task screen → Task services: adds and transforms
src/main.ts - Task screen → API client: loads tasks
src/main.ts - Task screen → Task types: types data
src/main.ts - API client → Task types: validates as
src/api.ts - API client → Task routes: fetches tasks
src/api.ts - Task routes → MySQL pool: queries
api/src/servidor.ts - MySQL pool → MySQL database: opens pool
api/src/banco.ts - User → Trips & destinations: plans
README.md - User → Dated itinerary & activities: plans
README.md - User → Trip budget control: controls
README.md