This document outlines the steps taken to set up the development environment for the climateInsuranceBackend project. It includes setting up a Conda environment, configuring a Flask application, and ensuring all necessary dependencies are installed and properly configured.
- Creating and Activating the Conda Environment
A Conda environment was created to manage the dependencies of the project. The environment is defined by an environment.yml file located in the
deploy
directory.
- /climateInsuranceBackend
- /demo-data
- /output-data
- /pylt
- /pycache
- /deploy
- /utilities
- /ylt-outputs
- /demo
cd path/to/climateInsuranceBackend
conda env create -f pylt/deploy/environment.yml
conda activate pylt
- Verifying the Python Interpreter Ensured that the Python interpreter used was the one installed in the Conda environment.
Commands to Check Python Path:
which python
which python3
- Installing Flask and Setting Up the API Flask was installed within the Conda environment to handle the backend API.
conda install flask
python3 app.py
from a separate terminal call
curl -X POST http://127.0.0.1:5000/adjust