Skip to content

Commit

Permalink
emma changed: readme + test name
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Kusumgar committed Jan 6, 2025
1 parent dbe6df3 commit 6a94dd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/server/tests/static-site-builder/builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("Wodin builder", () => {
expectPath(tmpdir);
});

tmpdirTest("works as expected", async ({ tmpdir }) => {
tmpdirTest("generates site with correct files and folder structure", async ({ tmpdir }) => {
const storesPath = p(tmpdir, "stores");
await buildSite(tmpdir);

Expand Down
4 changes: 2 additions & 2 deletions config-static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Background

We would like researchers to be able to build a site without a server and publish a static site somewhere like github pages. This will be to build interactive research papers/articles that allow policy makers to better understand a given model. Since the model will be static we can remove both the `express` backend, `redis` and `odin.api`.
We would like researchers to be able to build a site without a server and publish a static site somewhere like github pages. This will be to build interactive research papers/articles that allow policy makers to better understand the researchers' models. Since the models will be static we can remove both the `express` backend, `redis` and `odin.api`.

Static wodin sites will allow the user to update parameters and re-run the model, fit data, run sensitivity and download data. They do not support updating model code or saving sessions.

Expand All @@ -24,7 +24,7 @@ After the user writes the config, a github action will checkout this repo, run t
1. Gets the Javascript code for the ODE and discrete runners from `odin.api` and saves them into `stores/runnerOde.js` and `stores/runnerDiscrete.js` (the runner are generic and shared across all stores)
1. For each `<store-name>`, it saves the config into `stores/<store-name>/config.json` and it compiles the model code (also via the odin api) and saves the response into `stores/<store-name>/model.json`.

We also build `wodin` frontend in static mode (just normal `wodin` frontend with an early return in the api service so we don't do any network requests) and copy the js and css files into the output folder. After this, we just commit the output folder into a github pages branch and github will deploy it.
We also build `wodin` frontend in static mode (just normal `wodin` frontend with an early return in the api service so we don't do any network requests since there are no `odin.api` and `redis` containers running) and copy the js and css files into the output folder. After this, we just commit the output folder into a github pages branch and github will deploy it.

### Run time

Expand Down

0 comments on commit 6a94dd5

Please sign in to comment.