C_TuTor
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: v1View latest version
This directory contains the backend code for the KidC platform.
index.ts- Main entry point for the HTTP triggerdatabase/- Database migrations and queriesroutes/- API route handlersservices/- Business logic services
GET /api/lessons- Get all lessonsGET /api/lessons/:slug- Get a specific lesson by slugGET /api/lessons/:lessonId/exercises- Get exercises for a lesson
GET /api/exercises/:id- Get a specific exercisePOST /api/exercises/:id/submit- Submit a solution for an exercise
POST /api/compile- Compile and run C code
GET /api/users/:username/progress- Get learning path with user progress
The platform uses SQLite for data storage with the following tables:
kidc_users_v1- User informationkidc_lessons_v1- Lesson contentkidc_exercises_v1- Exercise definitionskidc_user_progress_v1- User progress trackingkidc_user_solutions_v1- User submitted solutions
The compiler service provides functionality to compile and run C code. In the current implementation, it simulates compilation and execution for demonstration purposes.
The exercise service handles validation of exercise solutions against test cases.