The Digital Cookbook
- Bun installed on your system
- Install dependencies:
bun install- Set up .env:
cp .env.example .envYou will eventually need to replace placeholder values with real api tokens
- Set up the database:
bun run db:push- Start the development server:
bun devThe app will be available at http://localhost:3000
- Run
bun install - Delete the .next folder (
rm .next) - Make sure .env has everything in .env.example
| Command | Description |
|---|---|
bun dev |
Start the development server |
bun run lint |
Run linter |
bun run format |
Format code with Prettier |
bun run test |
Run tests with Vitest |
bun run db:generate |
Generate database migrations |
bun run db:migrate |
Apply database migrations |
bun run db:push |
Sync schema directly to the database |
bun run db:studio |
Open Drizzle Studio to view database |