A simple FastAPI wrapper package for quick testing of auth endpoints.
Project description
simple-fastapi-backend-server
A minimal, prebuilt FastAPI backend server for quick authentication prototyping.
This package instantly runs a FastAPI server with the following endpoints:
GET /— health checkPOST /register— simulate user registrationPOST /login— simulate user login
Useful for frontend developers who need a simple, no-setup backend server to test and build authentication flows.
🚀 Features
- Preconfigured FastAPI server
- Lightweight, zero-setup
- CLI entry point:
simple-fastapi-backend-server - Returns mock responses for login and registration
- Ideal for frontend devs prototyping login/register UIs
🔧 Installation
pip install simple-fastapi-backend-server
▶️ Usage
Once installed, simply run:
simple-fastapi-backend-server
The server will start at http://localhost:8000.
📋 Endpoints
-
GET /{ "message": "API is running" } -
POST /registerRequest body:
{ "username": "johndoe", "password": "secret" }Response:
{ "message": "User registered successfully", "user": { "username": "johndoe", "password": "secret" } } -
POST /loginRequest body:
{ "username": "johndoe", "password": "secret" }Response:
{ "message": "User logged in successfully", "user": { "username": "johndoe", "password": "secret" } }
🧠 When to Use This
-
✅ You’re a frontend developer building and testing login/signup forms
-
✅ You don’t want to waste time setting up a full backend
-
✅ You want to test fetch/axios calls, error handling, and form logic
-
❌ Not for production — responses are static and no database is used
🧩 No Need to Build Your Own FastAPI Backend
This package eliminates the need to create a FastAPI project from scratch for simple frontend authentication testing. Just install and run it.
Perfect for React, Vue, Angular, or mobile developers building login/registration UIs.
🛑 Not Included
-
No real authentication
-
No token generation or database
-
No user validation or error handling
👨💻 Author Created by Ataur Rahman
📄 License
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
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 simple_fastapi_backend_server-0.1.5.tar.gz.
File metadata
- Download URL: simple_fastapi_backend_server-0.1.5.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a22425667aff0cdf086b47af64c0f601a34a708e9f4f066e39ec1167e67ec38
|
|
| MD5 |
4772e00275b31bc9179c412ad6fc0de1
|
|
| BLAKE2b-256 |
1b86f4650156250a7d2f2031011adad2cce2fca7aeaa0f7b5f40ceb2dc8ffe23
|
File details
Details for the file simple_fastapi_backend_server-0.1.5-py3-none-any.whl.
File metadata
- Download URL: simple_fastapi_backend_server-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b25fdf7803c09a732093f38b2ae82224c1da5f84e8365368734dcba4860461aa
|
|
| MD5 |
b182e2af1a9ae586301f1345313ca3a2
|
|
| BLAKE2b-256 |
89db2face16043d22554b7157a1888c20733fdac0fdf7a4a161b9b58cf9e25df
|