Skip to content

NitheshHS/fast_api_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Blog Application

This is a simple FastAPI application for managing blog posts. It supports operations like creating, reading, updating, and deleting blog posts.

Table of Contents

Clone the Repository

Clone this repository to your local machine using the following command:

git clone git@github.com:NitheshHS/fast_api_app.git

Install Dependencies

Install the required dependencies using the following command:

pip3 install -r requirements.txt

Run the Application Locally

To run the application locally, open your terminal and use the following command. By default, the app will run on port 8000:

uvicorn blogs.main:app

Run the Application in Docker

To run the application in Docker, follow these steps:

  1. Build the Docker image:
docker build -t my-blog-app .
  1. Run the app on a specified host and port:
docker run -d -p 8000:8000 .

Swagger

Once the application is running, you can view the Swagger documentation at the following URL:

http://0.0.0.0:8000/docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published