Quickly get started with FastAPI using this starter!
- If you want to upgrade Python, you can change the image in the Dockerfile.
- Modify requirements.txt to add packages.
This project demonstrates a simple RESTful API built using FastAPI.
- Python 3.7 or higher
- FastAPI
- Uvicorn (ASGI server)
-
Clone the repository:
git clone <repository-url> cd python-RESTful-fastAPI
-
Install dependencies:
pip install fastapi uvicorn
Run the application using uvicorn:
uvicorn main:app --reload
or
fastapi dev main.py- The API will be available at:
http://127.0.0.1:8000/
- GET /: Returns a welcome message.
{ "message": "Hello World" }
This project is licensed under the MIT License.