https://github.com/codewithshabbir/simple-api-python
https://github.com/codewithshabbir/simple-api-python
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codewithshabbir/simple-api-python
- Owner: codewithshabbir
- Created: 2025-03-11T15:39:03.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-03-11T15:43:29.000Z (10 months ago)
- Last Synced: 2025-03-11T16:37:23.047Z (10 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π FastAPI Side Hustles & Money Quotes API
A simple **FastAPI** application that provides random **side hustle ideas** and **money-related quotes** through API endpoints.
## π Features
β
**Get a random side hustle idea** πΌ
β
**Get a random money-related quote** π°
β
**Secure API with an API key** π
β
**Fast & lightweight with FastAPI** β‘
β
**Easy to deploy and integrate** π
---
## π οΈ Installation & Setup
Follow these steps to run the API on your local machine:
### 1οΈβ£ Clone the Repository
```bash
git clone https://github.com/codewithshabbir/simple-api-python
cd simple-api-python
```
### 2οΈβ£ Install Dependencies
```bash
pip install fastapi uvicorn
```
### 3οΈβ£ Run the API
```bash
uvicorn main:app --reload
```
---
## π‘ API Endpoints
### πΉ Get a Random Side Hustle
**Endpoint:**
```
GET /side-husstles?apiKey=123456789
```
**Response:**
```json
{
"side-husstles": "Freelancing (Upwork, Fiverr, Toptal)"
}
```
### πΉ Get a Random Money Quote
**Endpoint:**
```
GET /money-quotes?apiKey=123456789
```
**Response:**
```json
{
"money-quotes": "Donβt work for money, make money work for you. β Robert Kiyosaki"
}
```
---
## π Live Demo
Check out the live version of this API:
π **[Live API](https://simple-api-codewithshabbir.streamlit.app/)**
---
## π¨βπ» Developer
Made with β€οΈ by **[Muhammad Shabbir](https://codewithshabbir.vercel.app/)**
π **GitHub:** [@codewithshabbir](https://github.com/codewithshabbir)
π **Portfolio:** [codewithshabbir.vercel.app](https://codewithshabbir.vercel.app/)
---
## π License
This project is open-source and available under the **MIT License**.