Skip to content

JinLeeGG/FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Demo

This repository contains a FastAPI demonstration project. Follow the instructions below to set up and run the application.

Prerequisites

  • Python 3.13.3 (latest version)
  • Git

Setup Instructions

1. Clone the Repository

Git Bash:

git clone https://github.com/JinLeeGG/FastAPI.git

Command Prompt:

cd FastAPI

2. Create a Virtual Environment

Open a Command Prompt and run:

python -m venv venv

3. Activate the Virtual Environment

On Windows:

cd venv\Scripts
activate.bat

On macOS/Linux:

source venv/bin/
activate.bat

4. Install Dependencies

With the virtual environment activated, install the required packages:

pip install fastapi
pip install "uvicorn[standard]"
pip install jinja2

Running the Application

  1. Make sure you're in the project directory where main.py is located
  2. Start the application with:
uvicorn main:app --reload
  1. The web application will be available at:

Development

The --reload flag enables auto-reload, so the server will restart automatically when you make changes to the code.

API Documentation

FastAPI automatically generates interactive API documentation:

About

Demo repository for FastAPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors