Getting Started
Set up your development environment
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js 20+
- pnpm 9+
- Git
Quick Start
1. Clone the Repository
git clone https://github.com/your-username/easysaas.git
cd easysaas2. Install Dependencies
pnpm install3. Set Up Environment
Run the one-click setup script:
pnpm run setupThis will configure both web and server environments automatically.
4. Start Development
pnpm devYour apps will be available at:
| App | URL |
|---|---|
| Web | http://localhost:3000 |
| Server | http://localhost:3001 |
Available Scripts
| Script | Description |
|---|---|
pnpm dev | Start all apps in development |
pnpm dev:web | Start web only |
pnpm dev:server | Start server only |
pnpm build | Build all apps |
pnpm check-types | TypeScript type checking |
pnpm lint | Lint (oxlint) |
pnpm fmt:check | Format check (oxfmt) |
Database Setup
# Generate migration from schema
pnpm db:generate
# Push schema to D1 (development)
pnpm db:push
# Open Drizzle Studio
pnpm db:studioNext Steps
- Project Structure - Explore the codebase
- Authentication - Set up user auth
- Database - Learn database operations
- Deployment - Deploy to production