Blog API and demo UI built with python/fastAPI, Mongodb and jinja2 templates
Local machine setup, follow this steps to run on your local machine
Before you begin, ensure you have the following prerequisites installed on your local machine:
- Python 3.7 or higher
- MongoDB ; Installing MongoDB
- Clone the repository to your local machine:
git clone https://github.com/EiseWilliam/Blog-Api-ALT/
- Navigate to the project directory:
cd Blog-Api-ALT
- Install the required Python packages using pip:
pip install -r requirements.txt
- 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"
- To start the User Manage Api, run the following command:
python3 run.py
The api will be accessible at http://localhost:8000.