mirror of
https://github.com/aljazceru/hello-fastapi.git
synced 2025-12-18 06:24:25 +01:00
init
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
__pycache__/
|
||||
.venv/
|
||||
7
fastapi_app/main.py
Normal file
7
fastapi_app/main.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI(port=8080)
|
||||
|
||||
@app.get("/")
|
||||
def index():
|
||||
return {"message": "Hello, World!"}
|
||||
1081
poetry.lock
generated
Normal file
1081
poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
15
pyproject.toml
Normal file
15
pyproject.toml
Normal file
@@ -0,0 +1,15 @@
|
||||
[tool.poetry]
|
||||
name = "fastapi-app"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Donatas Rasiukevicius <donatas@fly.io>"]
|
||||
readme = "README.md"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
fastapi = "^0.111.0"
|
||||
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
Reference in New Issue
Block a user