Skip to content

Uma plataforma onde as pessoas podem encontrar quais empresas ele pode investir com base no seu perfil ESG.

License

Notifications You must be signed in to change notification settings

ESGeasy/esgeasy-back

Repository files navigation

ESGeasy Back

demonstration

Table of Contents

About

It is a backend built for ESGeasy project. The objective of this is to build a api containing the companies informations like ESG score, company name and company id to be used in the frontend.

Requirements

To run this repository by yourself you will need to install python, and them install all the project requirements or, alternatively, you can use docker to run the entire application (exposed in the port 5000 by default). We will show how to do it in the next step.

Routes

For this api we have only three routes where the explanation is located bellow:

FutureRanking

This route receives a sector string and a score type and returns the json containing the company id, name and score related to the esg metrics prediction results in the following format:

{
  "company_id": "str", 
  "company_name": "str", 
  "score": "float64"
}

Ranking

This route receives a sector string and a score type and returns the json containing the company id, name and score related to the last esg results in the following format:

{
  "company_id": "str", 
  "company_name": "str", 
  "score": "float64"
}

Companies

This route receives a company id and returns the evolution graph image of esg metrics for the company and the data related to it like name, region, country, etc, in the following format:

{
  "data": {
    "company_id": "str", 
    "company_name": "str", 
    "score": "float64"
  },
  "image": "base64"
}

How to use

Setup

# Clone the backend repository
$ git clone <https://github.com/Hackganization/tbd-back>

# Access the backend directory
$ cd tbd-back/

# Run the docker-compose file 
$ docker-compose up --build

After that the api will be running in the port 5000.

demonstration

Technologies

  • Python
  • Docker
  • Pandas
  • Flask

About

Uma plataforma onde as pessoas podem encontrar quais empresas ele pode investir com base no seu perfil ESG.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •