/API

Primary LanguagePython

JokeAPI Project with FastAPI

Project Overview

This project:

  • Fetches 100 jokes from JokeAPI.
  • Stores them in an SQLite database.
  • Provides FastAPI endpoints to fetch and view jokes.

How to Run

  1. Clone the repository:
git clone <your-repo-url>
cd JokeAPI
 
2 Create a virtual environment:

python -m venv .venv

3. Activate the environment:

.venv\Scripts\activate

4. Install dependencies:

pip install -r requirements.txt
 
5. Run the server:

uvicorn main:app --reload
 
6. Open the Swagger UI:

http://127.0.0.1:8000/docs