Skip to content

EiseWilliam/Blog-Api-ALT

Repository files navigation

Blog FASTAPI

Blog RestAPI with FastAPI

Blog API and demo UI built with python/fastAPI, Mongodb and jinja2 templates

Getting Started

Local machine setup, follow this steps to run on your local machine

Prerequisites

Before you begin, ensure you have the following prerequisites installed on your local machine:

Installation

  1. Clone the repository to your local machine:

git clone https://github.com/EiseWilliam/Blog-Api-ALT/

  1. Navigate to the project directory:

cd Blog-Api-ALT

  1. Install the required Python packages using pip:

pip install -r requirements.txt

Configuration

  1. Ensure you have MongoDB running locally. You can modify the MongoDB connection details in the db.py file if necessary:

MONGO_DETAILS = "mongodb://localhost:27017"

  1. To start the User Manage Api, run the following command:

python3 run.py

The api will be accessible at http://localhost:8000.

API Endpoints

About

Blog Rest API with FastAPI and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published