AgenteCalendarioConteudo
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.
Viewing readonly version of main branch: v15View latest version
This directory contains the backend API for the Content Calendar Analysis application.
index.ts- Main entry point for the APIdatabase/- Database schema and queriesschema.ts- Database table definitionsqueries.ts- Database operations
routes/- API route handlersauth.ts- Authentication endpointsanalysis.ts- Content analysis endpoints
swagger.ts- API documentation
POST /api/auth/register- Register a new leadPOST /api/auth/login- Login with existing credentialsPOST /api/auth/logout- Logout and invalidate sessionGET /api/auth/session- Get current session information
POST /api/analysis/generate- Generate a new content calendar analysisGET /api/analysis/:id- Get a specific analysis by UUIDGET /api/analysis- List all analyses for the authenticated lead
GEMINI_API_KEY- Google Gemini API key for content generation
The application uses SQLite for data storage with the following tables:
leads_v1- User information and credentialssessions_v1- Authentication sessionsanalyses_v1- Stored content calendar analyses