infraestructure_integration
The aims of this repository is used the stack with python (FastApi) , PostgresSql and nginx as load balancer and server reverse proxy.
https://github.com/danielsarmiento04/infraestructure_integration
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.7%) to scientific vocabulary
Keywords
Repository
The aims of this repository is used the stack with python (FastApi) , PostgresSql and nginx as load balancer and server reverse proxy.
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Infrastructure Integration
Resume
The aims of this repository is used the stack with python (FastApi) , PostgresSql and nginx as load balancer and server reverse proxy.
Concept API
The API have the capability to manage the Hero, an Hero has the follow parameters
- id
- name
- secret_name
- age
The Api has 3 endpoints
/=> health check- POST
/heroes/=> create a new hero - GET
/heroes/=> get the heroes
Concept Infrastructure
The project has an integration with docker compose, see more in the docker-compose.yml file.
- Postgres SQL, image.
- mshero1, api image.
- mshero2, api image.
- serverreverseproxys, nginx image, the nginx conf file is at the follow path
reverse_proxy/nginx.conf.
The load balancer is configured to send a request to each ms_hero follow least connection.
Start up
This repository used docker as container manager
docker-compose build
docker-compose up -d
or if you want to use a simplified command line
docker-compose up -d --build
Stack
- FastApi as Rest API framework.
- Docker as container manager.
- PostgresSql as DataBase.
- Nginx as load balancer and reverse proxy.
Reference
[1] Simic, S. (2023) How to install Docker on ubuntu 20.04 and 22.04, phoenixNAP. Available at: https://phoenixnap.com/kb/install-docker-on-ubuntu-20-04 (Accessed: 21 September 2023).
[2] Maintainers, D. (2023) Install the compose plugin, Docker Documentation. Available at: https://docs.docker.com/compose/install/linux/ (Accessed: 21 September 2023).
[3] taoyuan. (n.d.). Generation of a self signed certificate. Gist. https://gist.github.com/taoyuan/39d9bc24bafc8cc45663683eae36eb1a
[4] Ramírez, S. FastAPI [Computer software]. https://github.com/tiangolo/fastapi
Owner
- Name: José Daniel Sarmiento
- Login: DanielSarmiento04
- Kind: user
- Location: Santander, Colombia
- Company: Axede S.A
- Repositories: 7
- Profile: https://github.com/DanielSarmiento04
Programmer, mechanical engineer and entrepreneur, my goal is to improve the quality of life of people, technology is the tool I use.
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: >-
Infrastructure Integration
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Jose Daniel
family-names: Sarmiento
email: josedanielsarmiento219@gmail.com
affiliation: mechanical engineering
repository-code: >-
https://github.com/DanielSarmiento04/infraestructure_integration
abstract: >-
The aims of this repository is used the stack with python
(FastApi) , PostgresSql and nginx as load balancer and
server reverse proxy.
keywords:
- Nginx
- FastAPI
- PostgresSql
license: MIT
version: '1.0'
date-released: '2024-04-27'
GitHub Events
Total
Last Year
Dependencies
- actions/checkout v3 composite
- python 3.11 build
- postgres 14-alpine
- SQLAlchemy ==2.0.29
- annotated-types ==0.6.0
- anyio ==4.3.0
- click ==8.1.7
- fastapi ==0.110.2
- h11 ==0.14.0
- idna ==3.7
- pydantic ==2.7.0
- pydantic_core ==2.18.1
- python-dotenv ==1.0.1
- sniffio ==1.3.1
- sqlmodel ==0.0.16
- starlette ==0.37.2
- typing_extensions ==4.11.0
- uvicorn ==0.29.0
- actions/checkout v4 composite
- hoverkraft-tech/compose-action v1.5.1 composite
- nginx latest build