Creating the project
The installer creates a new app with a SQLite database and a Vue frontend. By the end of this lesson the app runs on your machine.
1. Run the Installer
The installer creates a project for you. Run it without any options and it asks a few questions:
uvx fastapi-startkit@latest init issue-trackerAnswer them like this:
| Question | Answer |
|---|---|
| Which services should your application run? | Web |
| Which database will your application use? | SQLite |
| Which frontend would you like to install? | Vue |
If you'd rather skip the questions, pass the answers as options. -n turns off the questions:
uvx fastapi-startkit@latest init issue-tracker --app=web --database=sqlite --frontend=vue -nNo uv yet?
On macOS or Linux, the install script sets up uv for you and runs the same installer:
curl -fsSL https://fastapi-startkit.github.io/install.sh | bash -s -- issue-tracker --app=web --database=sqlite --frontend=vue -nThe installer prints each file it creates and then installs the Python packages:
Application: web; database: sqlite; frontend: vue
create .env
create .env.example
...
create config/database.py
...
create databases/migrations/.gitkeep
create databases/seeders/__init__.py
create databases/seeders/database_seeder.py
...
create routes/api.py
create tests/test_application.py
create vite.config.ts
Dependency: fastapi-startkit[database,fastapi,inertia,sqlite,vite]==X.Y.Z
...
Your application is ready.X.Y.Z is the latest release when you run the installer.
Choosing SQLite gave you three things:
config/database.py, which reads its settings from.env,DB_CONNECTION=sqliteandDB_DATABASE=databases/database.sqlitein.env,- a
databases/folder for migrations and seeders.
Choosing Vue gave you Vite, Tailwind, Inertia and a first page in resources/js/Pages/Home.vue. You'll use them for the issue board in lesson 12.
Adding a database to an existing app
If you started without a database, Database: Getting Started shows how to add one by hand.
2. Start the Server
Move into the new folder and start the server:
cd issue-tracker
uv run python artisan serveThe app runs at http://127.0.0.1:8000. Leave it running in its own terminal. It reloads when you save a file.
Check
Open a second terminal and ask the app if it's healthy:
curl http://127.0.0.1:8000/health{"status": "ok"}Then open http://127.0.0.1:8000/docs in your browser. This is FastAPI's interactive API page. Every route you add in this course shows up here.
The home page comes later
The page at / is a Vue page. It needs the frontend to be built first, which you'll do in lesson 12. Until then, stick to /health and /docs.
Compare your code
This lesson's code is tagged lesson-02.