Skip to content

Commit 28aaaa7

Browse files
committed
update code structure section
1 parent 67d1204 commit 28aaaa7

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

README.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,27 @@ This should only be performed if absolutely necessary.
100100
3. When building the next `covidcast` docker image, changes will no longer automatically propagate via the `latest` `covidcast` image to the local pipeline image; the tag in `docker_build/Dockerfile` must be manually changed back to `latest`.
101101

102102
# Code Structure
103-
- `.github/workflows` contains the weekly data pipeline workflow action (`s3_upload_ec2.yml`) and the `main.yml` that runs on branch merge
104-
- `Report` contains the scoring and data upload scripts that run weekly
105-
- `dashboard` contains all the code for the RShiny dashboard
106-
- `www` contains the styling and the assets
107-
- `app.R` is the main RShiny file with the UI and server functions
108-
- `common.R` is for code shared between the app and the download feature
109-
- `export_scores.R` contains the code for the download feature
110-
- `about.md` contains the code for the "About" tab in the dasboard (other .md files contain explanations of the scores and other text info that appears in the app)
111-
- `docker_buid` contains the `Dockerfile` specifying the version of the `covidcast` docker image to use
112-
- `docker_dashboard` contains the `Dockerfile` and `shiny_server.conf` for the RShiny app
103+
- `.github`
104+
- `workflows` contains GitHub Actions workflow files
105+
- `ci.yml` runs linting on branch merge. Also builds new Docker images and pushes to the image repo for the `main` and `dev` branches
106+
- `create_release.yml` triggered manually to merge `dev` into `main`. Increments app version number, and creates PR into `main` and tags reviewer (currently Katie).
107+
- `release_main.yml` runs on merge of release branch. Creates tagged release using `release-drafter.yml` and merges updated `main` back into `dev` to keep them in sync.
108+
- `s3_upload_ec2.yml` runs the weekly self-hosted data pipeline workflow action (preceded by `s3_upload.yml` that ran the pipeline on a GitHub-provided VM)
109+
- `release-drafter.yml` creates a release
110+
- `Report` contains the code for fetching, scoring, and uploading forecasts. Runs 3 times a week
111+
- `app` contains all the code for the Shiny dashboard
112+
- `R` contains supporting R functions
113+
- `data.R` defines data-fetching functions
114+
- `data_manipulation.R` defines various filter functions
115+
- `delphiLayout.R` defines dashboard main and sub- UIs
116+
- `exportScores.R` contains tools to support the score CSV download tool included in the dashboard
117+
- `assets` contains supporting Markdown text. `about.md` contains the code for the "About" tab in the dasboard; other .md files contain explanations of the scores and other text info that appears in the app.
118+
- `www` contains CSS stylesheets and the logo images
119+
- `ui.R` sets up the UI for the dashboard, and defines starting values for selectors
120+
- `server.R` defines dashboard behavior. This is where the logic for the dashboard lives.
121+
- `global.R` defines constants and helper functions
122+
- `docker_buid` contains the Docker build configuration for the scoring pipeline
123+
- `devops` contains the Docker build configuration for the Shiny dashboard
113124
- ***Note: when adding a new package dependency to the app, it must be specified in this Dockerfile***
114-
- `DESCRIPTION` is where the version number is updated for each release
115-
- `Makefile` contains all commands to build and run the dashboard and score and upload the data
125+
- `DESCRIPTION` summarizes package information, such as contributors, version, and dependencies
126+
- `Makefile` contains commands to build and run the dashboard, and score and upload the data

0 commit comments

Comments
 (0)