Building a Todo App with ByteMason
This guide walks you through creating a full-stack todo application with authentication, categories, and due dates.
Project Setup
# Create new project
mason new todo-app
cd todo-app
# Generate specification
mason plan "Create a todo app with user authentication, categories, and due dates. Users should be able to create, update, delete todos and organize them by categories. Each todo should have a title, description, due date, category, and completion status."Understanding the Generated Specification
The specification will include:
-
Database Schema:
- Users table (handled by Supabase Auth)
- Todos table
- Categories table
-
API Endpoints:
- CRUD operations for todos
- Category management
- User preferences
-
UI Components:
- Authentication forms
- Todo creation/edit forms
- Category management
- Todo list with filters
Database Setup
# Configure Supabase
mason db setup ./spec/specification.json
# Push migrations
mason db pushCode Generation
# Generate application code
mason code ./spec/specification.jsonTesting Your Application
# Install dependencies
npm install
# Start development server
npm run devCommon Issues and Solutions
- Build Errors: Run
mason repairto fix common issues - Database Sync: Use
mason db pushafter schema changes - UI Updates: Modify shadcn components in
components/ui
Last updated on