• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
DevHub

DevHub

C_TuTor

Remix of Qwertzn2016/C_TuTor
Public
Like
C_TuTor
Home
Code
4
backend
5
frontend
4
shared
2
README.md
Branches
1
Pull requests
Remixes
1
History
Environment variables
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.
Sign up now
Code
/
backend
/
README.md
Code
/
backend
/
README.md
Search
5/18/2025
Viewing readonly version of main branch: v5
View latest version
README.md

KidC Backend

This directory contains the backend code for the KidC platform.

Structure

  • index.ts - Main entry point for the HTTP trigger
  • database/ - Database migrations and queries
  • routes/ - API route handlers
  • services/ - Business logic services

API Endpoints

Lessons

  • GET /api/lessons - Get all lessons
  • GET /api/lessons/:slug - Get a specific lesson by slug
  • GET /api/lessons/:lessonId/exercises - Get exercises for a lesson

Exercises

  • GET /api/exercises/:id - Get a specific exercise
  • POST /api/exercises/:id/submit - Submit a solution for an exercise

Code Compilation

  • POST /api/compile - Compile and run C code

User Progress

  • GET /api/users/:username/progress - Get learning path with user progress

Database Schema

The platform uses SQLite for data storage with the following tables:

  • kidc_users_v1 - User information
  • kidc_lessons_v1 - Lesson content
  • kidc_exercises_v1 - Exercise definitions
  • kidc_user_progress_v1 - User progress tracking
  • kidc_user_solutions_v1 - User submitted solutions

Services

Compiler Service

The compiler service provides functionality to compile and run C code. In the current implementation, it simulates compilation and execution for demonstration purposes.

Exercise Service

The exercise service handles validation of exercise solutions against test cases.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.