Skip to content

samuelmwalami/FastAPIBlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPIBlog

Swagger UI link for the blog API Documentatiotion

FastAPI Blog API Docs

How to run the code in your local environment

  1. Clone the repository to your local machine from your terminal.
git clone https://github.com/samuelmwalami/FastAPIBlog.git
  1. Navigate to FastAPIBlog directory
cd FastAPIBlog
  1. Create a virtual environment for the project.
python -m venv blogapi
  1. Activate your virtual environment.
  • On linux/macos:
source blogapi/bin/activate
  • on windows:
blogapi\Scripts\activate
  1. Install all the project dependencies.
 pip install -r requirements.txt
  1. Create a .env file with the following fields.
DATABASE_URL = "your-db url"
JWT_ALGORITHM = "HS256"
JWT_SECRET = "your_secret"
  1. Run the main.py file.
 uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
  1. Voila, your project is live. Open http://127.0.0.1:8000/docs#/ to view swagger UI docs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors