This repository contains FastAPI backend and communication with database.
Dependencies:
- Python 3.11
- PostgreSQL
- Poetry - add to path after install
- Optional - PgAdmin
- Open terminal and navigate to desired project location
- To clone the repository, run one of following commands:
- ssh (preferred if you have set up an ssh key):
git clone [email protected]:guidioproject/Guidio-Backend.git
- https:
git clone https://github.com/guidioproject/Guidio-Backend.git
- GitHub CLI:
gh repo clone guidioproject/Guidio-Backend
- ssh (preferred if you have set up an ssh key):
- Open project in desired code editor and run
poetry install
- After installation process is finished, run
poetry shell
- Create database through terminal or pgAdmin - example
- Create
.env
file in root of the project. - Copy and paste contents from
.env.example
and replace#
with proper values- Keep in mind that for development purposes, you must put the
dev
value under ENVIRONMENT variable
- Keep in mind that for development purposes, you must put the
- To run the project, run the following command:
poetry run guidio
- Access SwaggerUI using: http://127.0.0.1:8000/docs
- Make sure you have docker installed and running
- Open terminal and navigate to desired project location
- To clone the repository, run one of following commands:
- ssh (preferred):
git clone [email protected]:guidioproject/Guidio-Backend.git
- https:
git clone https://github.com/guidioproject/Guidio-Backend.git
- GitHub CLI:
gh repo clone guidioproject/Guidio-Backend
- ssh (preferred):
- Open the project in desired code editor and create
.env
file in root of the project. - Copy and paste contents from
.env.example
and replace#
with proper values- Keep in mind that for development purposes, you must put the
dev
value under ENVIRONMENT variable
- Keep in mind that for development purposes, you must put the
- To run the project you must be in the root location and run
docker-compose up -d
- Access SwaggerUI using: http://127.0.0.1:8000/docs