An open API service indexing awesome lists of open source software.

https://github.com/codewithshabbir/simple-api-python


https://github.com/codewithshabbir/simple-api-python

Last synced: 10 months ago
JSON representation

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**.