Tutorial: First Steps with RahulChaube Runtime

  • Category: Tutorials (Diátaxis Framework)
  • Version: v1.0.0
  • Status: Implemented

Summary

Learn how to install RahulChaube Runtime, create your first project, run a server in TypeScript, and execute unit tests.

Overview

This tutorial guides beginners through setting up RahulChaube Runtime and building a simple HTTP service using native TypeScript support.

Step 1: Installation (POSIX & Windows)

curl -fsSL https://rahulchaube.space/install | bash

Verify installation:

rahulchaube --version
# Output: rahulchaube v1.0.0

Step 2: Create a Project

rahulchaube create react my-app
cd my-app

Step 3: Write a Native Server

// server.ts
RahulChaube.serve({
  port: 3000,
  fetch(req: Request): Response {
    return new Response("Hello from RahulChaube Runtime!");
  },
});

Run directly:

rahulchaube run server.ts