Quick Start¶
This guide will walk you through creating your first FastAPI project with FastAPI Smith.
Running FastAPI Smith¶
Simply run the command:
You'll be greeted with an interactive prompt that will guide you through the setup process.
Configuration Prompts¶
1. Project Basics¶
First, you'll be asked about your project details:
? Project name: my-awesome-api
? Project description: My awesome FastAPI project
? Author name: Your Name
? Author email: you@example.com
? Python version: 3.12
2. Database Setup¶
Choose your database and ORM:
3. Authentication¶
Select your authentication method:
4. Additional Features¶
Choose optional features:
? Include admin panel? Yes (SQLAdmin)
? Caching: Redis
? Task queue: Celery
? Logging library: Loguru
? Include Sentry error tracking? No
5. Development Tools¶
Configure your development environment:
6. Deployment¶
Set up deployment options:
? Include Docker files? Yes
? Include docker-compose? Yes
? Set up GitHub Actions CI/CD? Yes
? Deploy to AWS ECS? No
7. Confirmation¶
Review your choices and confirm:
╭─────────────────── Configuration Summary ───────────────────╮
│ Project: my-awesome-api │
│ Database: PostgreSQL with SQLAlchemy 2.0 │
│ Auth: JWT │
│ Admin: SQLAdmin │
│ Caching: Redis │
│ Tasks: Celery │
│ ... │
╰─────────────────────────────────────────────────────────────╯
? Proceed with project generation? Yes
Project Generated!¶
Once confirmed, FastAPI Smith will generate your project:
✓ Creating project structure...
✓ Generating configuration files...
✓ Creating database models...
✓ Setting up authentication...
✓ Configuring admin panel...
✓ Creating Docker files...
✓ Setting up CI/CD...
Project created successfully! 🎉
Running Your Project¶
With uv (Recommended)¶
With pip¶
cd my-awesome-api
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e .
uvicorn app.main:app --reload
With Docker¶
Viewing Your API¶
Once running, visit:
- API Documentation: http://localhost:8000/docs
- Alternative Docs: http://localhost:8000/redoc
- Admin Panel: http://localhost:8000/admin (if enabled)
- Health Check: http://localhost:8000/health
Next Steps¶
Congratulations! You now have a running FastAPI application. Here's what to do next:
-
Set up the database:
-
Create your first endpoint - See the Project Structure guide
-
Add models and schemas - Learn about Database Configuration
-
Set up authentication - Check the Authentication Guide
-
Deploy to production - Follow the Docker Deployment guide
Example Project¶
Want to see what a generated project looks like? Check out our example repository.
Getting Help¶
If you run into issues:
- Check the Configuration Overview
- Read the Guides
- Open an issue on GitHub