Skip to content

USACE-WaterManagement/cwms-batch-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wm-event-manager

The Water Management Event Manager provides users an API and user interface to execute water management jobs on a manual or event-driven basis.

Contributions

To get your local environment setup and/or make contributions please see the contributions documentation:

Local Development Setup

For a detailed rundown see the CONTRIBUTING.md

Critical URLs

page url
Minio Web Interface http://localhost:9001
Swagger Docs http://localhost:8000/docs
Web Dev Server http://localhost:5173
Redoc http://localhost:8000/redoc

Python

For the best experience, pyenv is recommended for install instructions. If pyenv is available, the setup-pyenv.sh script is provided to create a virtual environment and install the necessary local dev requirements. Be sure to install gcc for your environment.

Authentication

By default, the local instance of the API uses a mock user account. This account has script-execute permissions for all districts. As a result, the API will return scripts for all offices that contain a corresponding script catalog within the minio instance.

Script Containers

The API will reference district script docker images that exist locally by the name [office-code]-jobs, e.g. lrh-jobs. These can be created by cloning the corresponding district jobs repo, e.g. lrh-wm-cwbi-jobs, and building the images from the local dockerfile with docker build . -t [office-code]-jobs.

Script Catalogs

Add the office code and repo path for any locally-available district job containers to api/scripts/catalog_config.toml. Then, run api/scripts/build_catalogs.py. This will generate a scripts_catalog.json object under each available district's prefix within minio.

User Interface

The user interface is deployed locally as a vite development server. To run it, simply enter the ui directory and run npm run dev.

About

Water Management Enterprise Event Manager

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •