Skip to main content

FastAPI + React project setup CLI

Project description

FastAPI React Web CLI

A modern CLI tool to scaffold a full-stack FastAPI + React project in seconds.

Features at a Glance

  • Interactive CLI with prompts
  • Project templates:
    • React (Vite)
    • Next.js
    • Eleventy (11ty)
    • Vanilla JavaScript & TypeScript
  • Tailwind CSS integration (optional)
  • TypeScript support
  • Pick your favorite package manager (npm, yarn, pnpm)
  • ESLint pre-configured
  • Auto installs everything you need

Features

  • Instantly create a FastAPI backend with CORS and a sample API endpoint
  • Scaffold a React frontend (with Vite, TypeScript, and Tailwind support)
  • Automatic backend/frontend connection (proxy setup)
  • Python virtual environment setup with uv
  • One command to get started: fastapi-react-cli

Installation

pip install fastapi-react-web

Usage

fastapi-react-cli

Follow the interactive prompts to set up your project. The CLI will:

  • Ask for your project name
  • Scaffold backend and frontend
  • Set up a Python virtual environment and install backend dependencies
  • Set up the React frontend with Vite (and optionally Tailwind CSS)

Running Your App

Start the backend

cd <your_project>/backend
source ../venv/bin/activate
uvicorn main:app --reload

Start the frontend

cd <your_project>/<frontend_dir>
npm install
npm run dev

Visit http://localhost:5173 to see your app in action!

Uninstall

pip uninstall fastapi-react-web

License

MIT


Made with ❤️ by Rudraksh121a

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_react_web-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

fastapi_react_web-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_react_web-0.1.1.tar.gz.

File metadata

  • Download URL: fastapi_react_web-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for fastapi_react_web-0.1.1.tar.gz
Algorithm Hash digest
SHA256 30ce17681e4084e1bc1084b9c5341731ae1bc17d919884b5aebf0ed1e64b60e1
MD5 b673de0641f497540acbdfba185d1184
BLAKE2b-256 f8a0f8e7f755117d865882e9e513174d5cfb5b55304ba24ac7a5f4b9eabbc4a3

See more details on using hashes here.

File details

Details for the file fastapi_react_web-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_react_web-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f7c72ac80d54d65f9da8b097b5f3138bb1ba5718d6dc20c3873793af9d171e4
MD5 411ec926f89e3246657649f5077d7b11
BLAKE2b-256 d80b208731148d791b5c5d1ca98f4eb35984a839bded4ec2c33933702bfe51fe

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