Quick Start¶
Get up and running with Projex in under 5 minutes!
Installation¶
Create Your First Project¶
Interactive Mode (Easiest)¶
The CLI will ask you:
- Project name? → Enter your project name
- Framework? → Choose from 8 options
- Database? → Select database type
- Authentication? → Pick auth method
- Template style? → Choose minimal/standard/full
Command Line Mode¶
Start Development¶
FastAPI Example¶
# Navigate to project
cd my-api
# Activate virtual environment
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Run development server
uvicorn app.main:app --reload
Visit http://localhost:8000/docs for API documentation!
Django Example¶
cd my-site
source venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
Visit http://localhost:8000/admin
Flask Example¶
Visit http://localhost:5000
What You Get¶
Every project includes:
✅ Complete project structure
✅ Docker & docker-compose
✅ Testing setup (pytest)
✅ Environment configuration
✅ Database integration
✅ Authentication (if selected)
✅ Git initialization
✅ Best practices
Common Commands¶
# List available templates
projex list
# Get help
projex --help
projex create --help
# Skip options
projex create my-app --template flask --no-git --no-venv
Next Steps¶
Add Components¶
# Add a model
projex add model User --fields name:str,email:str
# Add CRUD endpoint
projex add endpoint users --crud
# Add CI/CD
projex add cicd --provider github
Environment Setup¶
# Create environment files
projex env add development
projex env add production
# Copy example env
cp .env.example .env
# Edit .env with your values
Docker¶
Tips¶
💡 Use --style minimal for learning
💡 Use --style full for production
💡 Check generated README.md for project-specific instructions
💡 Run tests from day one: pytest
Troubleshooting¶
Port Already in Use¶
# FastAPI
uvicorn app.main:app --port 8001
# Django
python manage.py runserver 8001
# Flask
flask run --port 5001
Import Errors¶
# Ensure virtual environment is active
source venv/bin/activate
# Reinstall dependencies
pip install -r requirements.txt