Quick Start¶
This guide will help you create your first fastappkit project in minutes.
Create a Project¶
Start by creating a new fastappkit project:
This creates a complete FastAPI project structure:
myproject/
├── core/
│ ├── config.py # Settings (loads from .env)
│ ├── app.py # create_app() factory
│ ├── models.py # SQLAlchemy Base class
│ └── db/
│ └── migrations/ # Core migrations
├── apps/ # Internal apps directory
├── fastappkit.toml # Project configuration
├── .env # Environment variables
└── main.py # Entry point
Create an Internal App¶
Create your first app:
This creates apps/blog/ with models, router, and registers it in fastappkit.toml.
Run Migrations¶
Generate and apply migrations:
# Generate migration
fastappkit migrate app blog makemigrations -m "initial"
# Apply all migrations
fastappkit migrate all
Start Development Server¶
Run the development server:
Your API is now running at http://127.0.0.1:8000 with routes mounted at /blog/.
What Gets Created¶
Project Structure¶
core/: Core application codeconfig.py: Settings class (loads from.env)app.py: FastAPI app factorymodels.py: SQLAlchemy Base classdb/migrations/: Migration directory
apps/: Internal apps directoryfastappkit.toml: Project configuration (apps list).env: Environment variables (auto-created)main.py: Application entry point
App Structure¶
apps/blog/: Your first app__init__.py: Registration functionmodels.py: SQLAlchemy modelsrouter.py: FastAPI routes
Next Steps¶
Now that you have a working project:
- Read Core Concepts to understand how fastappkit works
- Follow the Creating Apps Guide for detailed app development
- Explore the Migration System for database management
- Check the CLI Reference for all available commands
- See Usage Scenarios for different development approaches
- Check out the Modular Tasks Platform example project to see fastappkit in action
Important Notes¶
- All commands must be run from project root (where
fastappkit.tomlis located) - Update dependency versions in
pyproject.tomlfrom*to specific ranges for production - Configure
.envfile with yourDATABASE_URLand other settings - Internal apps are automatically added to
fastappkit.tomlby the CLI