Skip to content

Tutorials

Hands-on tutorials to learn EreoJS by building real applications.

Available Tutorials

Build a Blog

A comprehensive 6-part tutorial that covers all the fundamentals by building a full-featured blog application.

What you'll learn:

  • Setting up an EreoJS project
  • File-based routing
  • Data loading with loaders
  • Form handling with actions
  • Styling with Tailwind CSS
  • Deploying to production

Prerequisites: Basic React knowledge

Time: ~2 hours

Build a Dashboard

Learn advanced patterns by building an authenticated dashboard with interactive islands.

What you'll learn:

  • Authentication patterns
  • Islands architecture
  • Real-time updates
  • Complex state management

Prerequisites: Completed Blog tutorial

Time: ~3 hours

Build a SaaS App

Build a full-featured project management app (TaskFlow) that covers the complete EreoJS stack — authentication, database with Drizzle ORM, forms with validation, islands, RPC, and deployment.

What you'll learn:

  • Drizzle ORM with SQLite
  • Multi-table relational schema
  • Form validation and error handling
  • Islands with shared state
  • RPC procedures and real-time subscriptions
  • Production deployment with tracing

Prerequisites: Completed Blog tutorial

Time: ~4 hours

Real-time Chat (RPC)

Build a real-time chat application using @ereo/rpc with WebSocket subscriptions, focusing on RPC procedures, real-time data flow, and reactive client components.

What you'll learn:

  • RPC router and procedure definitions
  • Query, mutation, and subscription patterns
  • WebSocket-based real-time updates
  • Reactive client components with signals
  • Rate limiting and error handling

Prerequisites: Basic understanding of RPC

Time: ~2 hours

Tutorial Structure

Each tutorial is broken into manageable sections:

  1. Setup - Project initialization and configuration
  2. Core Features - Building the main functionality
  3. Enhancements - Adding polish and advanced features
  4. Deployment - Getting your app live

Getting the Most from Tutorials

  1. Type along - Don't just copy-paste. Typing helps you learn.
  2. Experiment - Try changing things to see what happens.
  3. Read the errors - Error messages teach you about the framework.
  4. Check the source - Reference code is available in /packages/examples/.

Quick Reference

Blog Tutorial Chapters

ChapterTopicDuration
1. SetupProject initialization15 min
2. RoutesPages and navigation20 min
3. Data LoadingLoaders and database25 min
4. FormsActions and mutations25 min
5. StylingTailwind CSS20 min
6. DeploymentGoing live15 min

Dashboard Tutorial Chapters

ChapterTopicDuration
1. SetupProject and database setup20 min
2. AuthenticationLogin, registration, sessions30 min
3. IslandsInteractive widgets35 min
4. AnalyticsShared state between islands30 min
5. DeploymentProduction deployment25 min

SaaS Tutorial Chapters

ChapterTopicDuration
1. SetupProject scaffolding and schema20 min
2. AuthenticationAuth plugin, sessions, middleware30 min
3. DatabaseQueries, CRUD, Drizzle ORM35 min
4. FormsValidation, error handling30 min
5. IslandsInteractive components, shared state35 min
6. RPC & Real-timeProcedures, subscriptions30 min
7. DeploymentProduction build, tracing, Docker20 min

Real-time Chat Tutorial Chapters

ChapterTopicDuration
1. SetupProject, store, RPC router20 min
2. ProceduresQueries, mutations, events25 min
3. Real-timeSubscriptions, WebSocket client25 min
4. ClientChat UI, room list, islands25 min
5. PolishRate limiting, reconnection, typing20 min

Example Code

All tutorial code is available in the repository:

  • Blog: /packages/examples/blog
  • Minimal: /packages/examples/minimal

Clone and run:

bash
git clone https://github.com/ereoJS/ereoJS
cd ereo/packages/examples/blog
bun install
bun dev

Need Help?

Released under the MIT License.