Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions cogstack-cohorter/WebAPP/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,10 @@ This webapp is a cohort app for users to obtain the number of patients satifying
### Frontend
This repository currently contains two frontend implementations:

- `client` (legacy frontend): adapted from [Windmill Dashboard](https://windmillui.com/dashboard-html) with [tailwindcss](https://tailwindcss.com/) for styling and [alpine.js](https://alpinejs.dev/) for interactivity.
- `client-react` (React shell frontend): React 18 + `react-scripts`, using reusable HTML template components and a lightweight Alpine-style runtime.

Other runtime dependencies include [ECharts](https://echarts.apache.org/en/index.html) for charts and [popper.js](https://popper.js.org/) for tooltips.

To work on the legacy frontend:

```bash
cd client
npm install
```

Run `npm run tailwind` in `client` after adding any tailwind classes.

To work on the React frontend:

```bash
Expand Down Expand Up @@ -47,7 +37,7 @@ The backend of the app is in the `server` folder which is a [node.js](https://no

There is a script `gen_random_data.js` in `server/data/` folder to generate the above 6 files completely randomly so you can still try the app without any real data. In the app folder run `cd server/data && node --max-old-space-size=32768 gen_random_data.js`.

Please make sure to have the 6 data files ready in the `server/data/` folder before starting the server. To start the server, in the app folder run `cd server && npm install && npm run start`.
Please make sure to have the six data files ready in the `server/data/` folder before starting the server. To start the server, in the app folder run `cd server && npm install && npm run start`.

There is also a Dockerfile in the app folder if using docker, to build and run the container, run `docker build --tag cohortingtool/webapp . && docker run -p 3000:3000 cohortingtool/webapp`.

Expand Down
21 changes: 0 additions & 21 deletions cogstack-cohorter/WebAPP/client/LICENSE (Windmill Dashboard HTML)

This file was deleted.

Loading
Loading