Spaces:
Runtime error
Runtime error
|
Download README.md from adwhytahumans/CRM_FastAPI_React: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/spaces/adwhytahumans/CRM_FastAPI_React/resolve/main/README.md
- Command line
-
hf download hf://spaces/adwhytahumans/CRM_FastAPI_React/README.md
-
curl -L -o README.md https://huggingface.co/spaces/adwhytahumans/CRM_FastAPI_React/resolve/main/README.md
1.47 kB
metadata
title: CRM FastAPI React
emoji: 🌖
colorFrom: gray
colorTo: gray
sdk: docker
pinned: false
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
100x Elite CRM System
A simple CRM system for managing learner enrollments in 100x Elite courses.
Setup
- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
The server will start at http://localhost:8000
API Documentation
Once the server is running, you can access:
- Interactive API documentation:
http://localhost:8000/docs - Alternative API documentation:
http://localhost:8000/redoc
API Endpoints
Create a new learner:
- POST
/learners - Body example:
{ "name": "John Doe", "email": "john@example.com", "phone": "+1234567890", "course": "AI Filmmaking" }- POST
Get all learners:
- GET
/learners
- GET
Update a learner:
- PUT
/learners/{learner_id} - Body: Same as create learner
- PUT
Delete a learner:
- DELETE
/learners/{learner_id}
- DELETE
Testing with Postman
Import the following collection into Postman:
- Base URL:
http://localhost:8000 - Endpoints as described above
- Base URL:
For POST and PUT requests, set the Content-Type header to
application/json