Skip to content

ErkanSoftwareDeveloper/short-motivation-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short Motivation API

A lightweight REST API that serves random motivational quotes. Built with FastAPI and deployed on Render.

Live URL: https://short-motivation-api.onrender.com


About

Short Motivation API is a simple, open-access API that returns a random motivational quote with every request. No authentication required, no rate limits — just hit the endpoint and get inspired.


Endpoints

GET /

Health check — confirms the API is running.

Response:

{
  "message": "Motivation API is running!"
}

GET /quote

Returns a random motivational quote.

Response:

{
  "quote": "Discipline equals freedom."
}

Tech Stack

Tool Purpose
FastAPI Web framework
Uvicorn ASGI server
Render Cloud deployment
Python 3 Runtime

Run Locally

1. Clone the repository

git clone https://github.com/ErkanSoftwareDeveloper/short-motivation-api.git
cd short-motivation-api

2. Install dependencies

pip install -r requirements.txt

3. Start the server

uvicorn app:app --reload

The API will be available at http://127.0.0.1:8000.


Project Structure

short-motivation-api/
├── app.py            # FastAPI app & all endpoints
├── requirements.txt  # Python dependencies
└── README.md

Deployment

This project is deployed on Render as a free web service. The live API is accessible at:

https://short-motivation-api.onrender.com/quote

⚠️ Note: Free tier on Render spins down after inactivity. The first request after idle may take ~30 seconds to respond ⚠️


License

This project is licensed under the MIT License.

About

A REST API that serves random motivational quotes built with FastAPI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages