-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
github-actions[bot] edited this page Jul 7, 2026
·
1 revision
This guide walks you through setting up the Mailbox application locally from scratch.
Before you begin, ensure you have the following installed:
| Tool | Minimum Version | Notes |
|---|---|---|
| Node.js | v20.x | Required |
| npm | v10.x | Required |
| Docker & Docker Compose | Latest | Optional — needed for local PostgreSQL/MySQL |
git clone https://github.com/Prashant4900/mail-box.git
cd mail-box
npm installCopy the example environment file:
cp .env.example .envOpen .env in your editor. The file is divided into annotated blocks. By default it is pre-configured for SQLite so you can start immediately with zero extra setup.
Key variables you should review:
| Variable | Description |
|---|---|
DATABASE_URL |
Your active database connection string |
AUTH_SECRET |
A random secret string for session signing |
SMTP_HOST |
SMTP server hostname for outgoing email |
SMTP_PORT |
SMTP port (usually 465 or 587) |
SMTP_USER |
SMTP username / email address |
SMTP_PASS |
SMTP password |
Generate the Prisma client types and synchronize the database schema:
npm run db:generate
npm run db:pushTo load mock seed data for development:
npm run db:seedTo open Prisma Studio (visual database browser):
npm run db:studionpm run devOpen http://localhost:3000.
On first visit, the setup wizard will guide you through creating your admin account.
- Navigate to
http://localhost:3000/setup. - Create your Owner account (name, email, password).
- Log in and explore the dashboard.
- Invite team members from the Users panel.
- Configure your database for production.
- Set up Cloudflare for inbound email routing.
- Deploy to production.