Quick Start¶
Get Depict AI running in under 5 minutes!
1. Install Dependencies¶
# Install Python dependencies
poetry install
# Install frontend dependencies
cd src/frontend && npm install && cd ../..
2. Start the Application¶
Start backend and frontend in separate terminals¶
Terminal 1 - Backend:
Terminal 2 - Frontend:
3. Access the Application¶
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
4. Create Your First User¶
Option 1: Sign Up via UI¶
- Go to http://localhost:3000
- Click "Sign Up"
- Enter:
- Username
- Password (min 6 characters)
- Click "Sign Up"
Option 2: Using API Docs¶
- Go to http://localhost:8000/docs
- Find
POST /signupendpoint - Click "Try it out"
- Enter user details:
- Execute
5. Log In¶
- Go to http://localhost:3000
- Enter your email and password
- Click "Sign In"
6. Explore Features¶
Create a Project¶
- Click on "Projects" in the sidebar
- Click "Create Project"
- Enter project name and description
- Start adding images!
Upload Images¶
- Select a project
- Click "Upload" panel
- Drag and drop images or click to browse
- Images will be processed and added to your project
Annotate Images¶
- Click on an image in the gallery
- Use annotation tools to label
- Save annotations
Next Steps¶
Set Up OAuth2 (Optional)¶
Enable social login with Google, Microsoft, or GitHub:
Explore Documentation¶
Run Tests¶
View Documentation¶
Common Commands¶
# Backend
cd src/backend
poetry run fastapi dev endpoints.py # Start FastAPI server
cd ../..
poetry run pytest # Run tests
# Frontend
cd src/frontend
npm run dev # Start Nuxt dev server
# Docs
cd ../..
poetry run mkdocs serve # Start MkDocs server
# Maintenance
poetry run ruff check . # Lint Python code
Troubleshooting¶
Can't log in?
- Check backend logs for errors
- Verify user was created successfully
- Ensure JWT_SECRET_KEY is set in .env
Images not uploading? - Check file size limits - Verify image format (jpg, png, etc.) - Check backend logs for errors
Port conflicts? - Backend default: 8000 - Frontend default: 3000 - Change ports in config if needed
Getting Help¶
- Check Backend Documentation
- Check Frontend Documentation
- Review API Docs when server is running