jhuhandha / tech-test-python-Leasey.AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tech-test-python-Leasey.AI README

Features

Para las empresas inmobiliarias es fundamental mantener actualizadas las direcciones de las propiedades. La información relacionada con la ubicación debe estar normalizada y actualizada por tal motivo es necesario que campos como nombres de países y ciudades sean únicos y no sean ambiguos o tengan errores ortográficos.

Installation

To run this project, follow these steps:

  1. Clone the repository or download it as a ZIP file:

    git clone https://github.com/jhuhandha/tech-test-python-Leasey.AI.git
    
  2. Navigate to the project directory:

    cd tech-test-python-Leasey.AI
    
  3. Install the project dependencies using pip and the requirements.txt file:

    pip install -r requirements.txt
    
  4. Copy the .env.example file and rename it to .env. Then, configure the necessary environment variables in the .env file.

Execution

To run the API, use the following command:

python main.py

The API will run at http://localhost:8000.

Usage

Once the API is up and running, you can access the endpoints using a web browser or a tool like Postman. To retrieve information about countries, use the /countries/ route followed by the name of the desired country, for example:

http://localhost:8000/countries/colombi

Make sure to replace colombi with the name of the country you want to query.

Enjoy!

About


Languages

Language:Python 100.0%