Common Development Tasks
Add a concise value statement that captures reader interest and previews content value. Focus on benefits while keeping it under two lines. Align with your blog categories.
## Running the Development Server
Start all services in development mode:
```bash
pnpm dev
```
The server will hot-reload as you make changes to any package.
## Adding a New Component
1. Create component directory in packages/blocks/src/MyComponent/
2. Add index.tsx, MyComponent.stories.tsx, MyComponent.test.tsx
3. Export from packages/blocks/src/index.ts
4. Use in your application
## Database Workflows
**Create a migration:**
```bash
pnpm --filter=web db:migrate:create
```
**Run migrations:**
```bash
pnpm --filter=web db:migrate
```
**Reset database:**
```bash
pnpm --filter=web db:migrate:fresh
pnpm --filter=web db:seed
```
## Code Quality
Before committing, always run:
```bash
pnpm cicd
```
This runs type checking and linting. All checks must pass.
## Testing
**Run all tests:**
```bash
pnpm test
```
**Watch mode:**
```bash
pnpm test:watch
```
**Coverage report:**
```bash
pnpm test:coverage
```
