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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_react_web-0.1.2.tar.gz.
File metadata
- Download URL: fastapi_react_web-0.1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4329aefa7c3f5c4f80b10610cc6cc95172d0963db27462d5c91de75352a93a9
|
|
| MD5 |
350bb5d997b7755371553a1b27c599b1
|
|
| BLAKE2b-256 |
6da7cf6af2fb6e28108a2aa6bb240f25ebf567f5b4f84b0224ecb070fbd2853b
|
File details
Details for the file fastapi_react_web-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fastapi_react_web-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84aa2e87073ca1e278c9f1e9716f6d94ec30ea954caca601940c685b4a762662
|
|
| MD5 |
678ba852540354ac4e567c4b1397c5aa
|
|
| BLAKE2b-256 |
6321b0a49a79dee8383d85da528245dff3a17efe5218bfd689b70b3e59d549f2
|