Skip to main content

A CLI tool to scaffold full-stack projects with FastAPI backend and React Vite frontend

Project description

๐Ÿš€ FastAPI Full Stack Launch

A powerful CLI tool to scaffold production-ready full-stack projects with FastAPI backend and React + Vite + TypeScript frontend.

PyPI version Python 3.8+ License: MIT

โœจ Features

  • ๐Ÿ“ Full-Stack Project Structure - Backend, frontend, and API proxy in one command

  • โšก Fast Setup - Uses uv for lightning-fast Python package management

  • โš›๏ธ Modern Frontend - React 18 + TypeScript + Vite

  • ๐Ÿ Production Backend - FastAPI with proper project structure

  • ๐Ÿ”ง Pre-configured Components:

    • Backend (FastAPI):
      • RESTful API Router (v1)
      • CORS configured for frontend
      • Environment config with python-dotenv
      • SQLAlchemy + MySQL Database Setup
      • Testing Framework
    • Frontend (React + Vite):
      • TypeScript configured
      • ESLint setup
      • Hot Module Replacement

๐Ÿ“‹ Prerequisites

Requirement Version Installation
Python 3.8+ python.org
Node.js 18+ nodejs.org
uv Latest See Installing uv

๐Ÿ“ฆ Installation

Windows:

pip install fastapi-full-stack-launch

macOS / Linux:

pip3 install fastapi-full-stack-launch

๐Ÿ› ๏ธ Usage

Create a new full-stack project:

fastapi-full-stack-launch project <project_name>

Example:

fastapi-full-stack-launch project my-awesome-app

This generates a complete project structure:

my-awesome-app/
โ”œโ”€โ”€ .venv/                    # Python virtual environment
โ”œโ”€โ”€ backend/                  # Backend (FastAPI)
โ”‚   โ””โ”€โ”€ app/
โ”‚       โ”œโ”€โ”€ api/v1/
โ”‚       โ”‚   โ””โ”€โ”€ router.py
โ”‚       โ”œโ”€โ”€ core/
โ”‚       โ”‚   โ”œโ”€โ”€ config.py
โ”‚       โ”‚   โ””โ”€โ”€ logging.py
โ”‚       โ”œโ”€โ”€ db/
โ”‚       โ”‚   โ””โ”€โ”€ database.py
โ”‚       โ”œโ”€โ”€ models/
โ”‚       โ”œโ”€โ”€ schemas/
โ”‚       โ”œโ”€โ”€ services/
โ”‚       โ”œโ”€โ”€ tests/
โ”‚       โ”œโ”€โ”€ utils/
โ”‚       โ””โ”€โ”€ main.py
โ”œโ”€โ”€ frontend/                 # Frontend (React + Vite + TypeScript)
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ public/
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ vite.config.ts
โ”‚   โ”œโ”€โ”€ tsconfig.json
โ”‚   โ””โ”€โ”€ index.html
โ”œโ”€โ”€ .env                      # Environment configuration
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ pyproject.toml
โ””โ”€โ”€ README.md

๐Ÿš€ Quick Start

After creating your project:

Start the Backend:

macOS / Linux:

cd my-awesome-app
source .venv/bin/activate
cd backend
uvicorn app.main:app --reload

Windows:

cd my-awesome-app
.venv\Scripts\activate
cd backend
uvicorn app.main:app --reload

Backend runs at: http://localhost:8000 API Docs: http://localhost:8000/docs

Start the Frontend:

cd my-awesome-app/frontend
npm run dev

Frontend runs at: http://localhost:5173

โš™๏ธ Environment Configuration

The .env file in your project root contains:

FASTAPI_APP_URL=http://localhost:8000
DATABASE_URL=mysql+pymysql://root:password@localhost:3306/my-awesome-app_db
FRONTEND_URL=http://localhost:5173

๐Ÿ“ฅ Installing uv

uv is required for backend scaffolding. Install it using:

macOS / Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell):

irm https://astral.sh/uv/install.ps1 | iex

๐Ÿ“„ License

MIT License - see LICENSE for details.


Made with โค๏ธ by Krishi Devani

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_full_stack_launch-1.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_full_stack_launch-1.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_full_stack_launch-1.1.0.tar.gz.

File metadata

File hashes

Hashes for fastapi_full_stack_launch-1.1.0.tar.gz
Algorithm Hash digest
SHA256 25b62922fafb67bf29b153c6eb4c4cdf1875aa5f626a249e82b35fb1d0927448
MD5 393e43e6d30f1b98c51a7952edd8ae19
BLAKE2b-256 7880821aaf34ffe5647fe60cdc14b45b6e119c497e7f23a582369510001b33ce

See more details on using hashes here.

File details

Details for the file fastapi_full_stack_launch-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_full_stack_launch-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42e4601e4cc1b7d1b2374fd70016eb78f25c00b935cc8c22a7aa7e05f3eb1bf3
MD5 8039a3122d42df1204e3f8d21c64017e
BLAKE2b-256 4fdb6145ccd344445f8d72446c0a3e1a0f200e019d304dda3eb241b62d0cb6cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page