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.
To run this project, follow these steps:
-
Clone the repository or download it as a ZIP file:
git clone https://github.com/jhuhandha/tech-test-python-Leasey.AI.git
-
Navigate to the project directory:
cd tech-test-python-Leasey.AI
-
Install the project dependencies using pip and the requirements.txt file:
pip install -r requirements.txt
-
Copy the .env.example file and rename it to .env. Then, configure the necessary environment variables in the .env file.
To run the API, use the following command:
python main.py
The API will run at http://localhost:8000.
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!