checkpoint-03/auth-middleware.ts
2 tests passing
import { NextRequest, NextResponse } from 'next/server'
import { verifyToken } from './lib/auth'

export async function middleware(req: NextRequest) {
  const token = req.cookies.get('session')
  
  if (!token) {
    return NextResponse.redirect('/login')
  }
}

Code. Break. Debug. Deploy

We built a custom test runner to drive your progress. You don't learn by consuming content; you learn by fixing failing builds and verifying your solution—one checkpoint at a time.

🗺️

The Roadmap

Tackle professional-grade specs (like 'Build a Trello Clone') broken down into logical milestones.

The Engine

Our in-house validation system checks your logic in real-time.

The Outcome

You don't just write code; you prove it works.
Project Progress

Checkpoint 01

Setup project structure

PASSED

Checkpoint 02

Database schema design

PASSED

Checkpoint 03

Auth middleware implementation

IN PROGRESS

Checkpoint 04

API routes & validation

LOCKED

Checkpoint 05

Frontend integration

LOCKED

Instant Cloud Sandboxes.

Launch fresh React, Node, or JS environments in seconds. No configuration, no version conflicts—just pure coding flow.

Instant Spin-Up

Fresh sandbox ready in seconds—no downloads, no config.
🔧

Full Terminal Access

Install packages, run scripts, and debug with complete shell access.
💾

Auto-Persist State

Your code, dependencies, and files stay exactly as you left them.

Playground

sandbox-01
$ create playground react --name trello-clone
Creating sandbox...
✓ Node 20 • pnpm • Vite
✓ Installing dependencies
$ pnpm test
FAIL checkpoint_2 • 1 failing test
Hint: handle empty lists and return 200
$ pnpm test
PASS checkpoint_2 • all tests green
Instant
New env in seconds.
Terminal
Run scripts & tools.
Persistent
State stays put.
Open Source & Community Driven

Built in Public. Shaped by You.

DevsArena isn't a black box. It's a living engine improved by the builders who use it. Don't just consume the platform—help forge it.

Contribute to Core

Dive into the source code. Fix bugs, optimize the runner, or build entirely new guided project tracks.

Direct Signal

No support tickets. No bots. Your message goes directly to the maintainer's terminal.

Direct to Developer • No Signup