Skip to content

πŸ“š A repository to learn FastAPI (Python)

License

Notifications You must be signed in to change notification settings

GuilhermeStracini/hello-world-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hello World FastAPI (Python)

πŸ“š A repository to learn and explore the basics of FastAPI, a modern, fast (high-performance), web framework for building APIs with Python 3.7+ based on standard Python type hints.


Overview

This repository serves as an educational resource to:

  • Understand the foundational structure of a FastAPI application.
  • Experiment with creating routes, handling requests, and managing responses.
  • Learn how FastAPI leverages Python's type hints for auto-generated documentation and validation.

Features

  • Hello World Application:

    • Demonstrates the basic setup of a FastAPI project.
    • Includes a simple endpoint to get started.
  • Beginner-Friendly:

    • Aimed at developers new to FastAPI and modern Python web development.
    • Provides a solid starting point for more advanced FastAPI projects.

Getting Started

Follow these steps to set up and run the project locally.

Prerequisites

  • Python 3.7 or higher.
  • Pipenv or a similar virtual environment tool is recommended.

Steps

  1. Clone the Repository:

    git clone https://github.com/GuilhermeStracini/hello-world-fastapi.git
    cd hello-world-fastapi
  2. Set Up the Environment:

    • Create a virtual environment:
      python -m venv venv
      source venv/bin/activate  # On Windows: venv\Scripts\activate
    • Install dependencies:
      pip install -r requirements.txt
  3. Run the Application:

    uvicorn main:app --reload
  4. Access the API:

    • Visit http://127.0.0.1:8000 to see the Hello World response.
    • Explore the interactive API documentation at:

Helpful Links

Here are some additional resources to enhance your understanding of FastAPI and its ecosystem:


Contribution

Contributions are welcome! If you'd like to enhance this repository, feel free to:

  • Fork the repository.
  • Create a new branch for your feature or bug fix.
  • Submit a pull request with a detailed description.

License

This project is licensed under the MIT License.

About

πŸ“š A repository to learn FastAPI (Python)

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published