Skip to content

sorochak/climate-insurance-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Environment Setup

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.

  1. 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

Navigate to the project directory

cd path/to/climateInsuranceBackend

Create the Conda environment

conda env create -f pylt/deploy/environment.yml

Activate the environment

conda activate pylt
  1. 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
  1. Installing Flask and Setting Up the API Flask was installed within the Conda environment to handle the backend API.
conda install flask

Run the Api

python3 app.py

Test for functionality

from a separate terminal call

curl -X POST http://127.0.0.1:5000/adjust

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published