lich dev / lich stop¶
Start and stop the development environment.
Usage¶
What It Does¶
lich dev starts your entire development environment:
- Docker containers - PostgreSQL, Redis, and other services
- Backend - FastAPI server with hot reload
- Frontend - Next.js development server
Example¶
$ lich dev
🚀 Starting Development Environment
📦 Starting Docker services...
✅ PostgreSQL running on port 5432
✅ Redis running on port 6379
🐍 Starting Backend...
✅ FastAPI running on http://localhost:8000
⚛️ Starting Frontend...
✅ Next.js running on http://localhost:3000
---
Development servers running!
URLs:
Frontend: http://localhost:3000
Backend: http://localhost:8000
API Docs: http://localhost:8000/docs
---
Stopping Development¶
Option 1: lich stop¶
Option 2: Ctrl+C¶
Press Ctrl+C in the terminal where lich dev is running.
Services Started¶
| Service | Port | Purpose |
|---|---|---|
| PostgreSQL | 5432 | Database |
| Redis | 6379 | Caching |
| Backend API | 8000 | FastAPI |
| Frontend | 3000 | Next.js |
Best Practices¶
Check Individual Service Logs¶
Reset Docker Data¶
Common Issues¶
Port Already in Use¶
If you see "port already in use":
Docker Not Running¶
Make sure Docker Desktop is running before lich dev.
See Also¶
lich init- Create a project first- Configuration - Environment setup