Skip to content

FernandoCelmer/project-basic-test-fastapi

Repository files navigation

[project-basic-test-fastapi]

GitHub last commit GitHub followers

About

This repository contains a basic Python project of an API developed with the fastapi framework.

🚀 Stack

Instructions

Running the Local Project [PIP]

List of required commands
  • Create a new Python virtual environment
virtualenv -p python3.9 venv
  • Activate the virtual environment
source venv/bin/activate
  • Install requirements with PIP
pip install -r requirements.txt
  • Run the application
uvicorn app.main:app --host 0.0.0.0 --reload

Running the Local Project [Poetry]

List of required commands
  • Installing with Poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
  • Activate the virtual environment
poetry shell
  • install the requirements
poetry install

Running the project with [Docker]

List of required commands
  • Building the Docker image
sudo docker build --tag fastapi/dev --file docker/Dockerfile .
  • Starting the Docker container
sudo docker run --name my_fastapi -d -p 80:80 fastapi/dev

About

Test Project - POC [FastAPI + AWS Lambda + API Gateway]

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published