https://github.com/maayanlab/signature-commons-ui
A front-end UI for demoing API integration
https://github.com/maayanlab/signature-commons-ui
Last synced: 5 months ago
JSON representation
A front-end UI for demoing API integration
- Host: GitHub
- URL: https://github.com/maayanlab/signature-commons-ui
- Owner: MaayanLab
- License: other
- Created: 2018-11-19T22:04:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T21:50:54.000Z (about 1 year ago)
- Last Synced: 2024-04-02T21:53:01.067Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://amp.pharm.mssm.edu/sigcom/
- Size: 436 MB
- Stars: 6
- Watchers: 9
- Forks: 3
- Open Issues: 115
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# signature-commons-ui
A front-end UI for demoing API integration. Currently available at: http://amp.pharm.mssm.edu/sigcom/## Development
Before starting, install the project dependencies:```bash
npm install
```### `npm run dev`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.The page will reload if you make edits.
You will also see any lint errors in the console.### `npm run export:[dev|production]`
Build and export the project as a series of .html files.### `npm run deploy:[dev|production]`
Export, build and deploy the docker image for release.## dotenv
We use dotenv / next-dotenv to organize loading of environment variables--more specific settings will override less specific ones. i.e. `.env.development` settings take precedent over `.env`. You should define your own `.env.*.local` which are hidden by git (see [dotenv-load](https://github.com/formatlos/dotenv-load)).Furthermore, environment prefixes are important for NextJS.
- `NEXT_PUBLIC_*`: available server / client side
- `NEXT_SERVER_*`: available server side only
- `NEXT_STATIC_*`: available during static renderingOther variables may not propagate, so ensure you use these prefixes.
## UI SCHEMAS
Modifying SigCom UI to your data is done via the entries in the schema table. SigCom uses three types of schemas.- `/dcic/signature-commons-schema/v5/meta/schema/landing-ui.json`: Defines the overall look of the landing page
- `/dcic/signature-commons-schema/v5/meta/schema/ui-schema.json`: Used for formatting the labels for searches, without this, SigCom defaults to the ids as labels
- `/dcic/signature-commons-schema/v5/meta/schema/counting.json`: Tells sigcom which metadata to count for the landing page, you can also set it to either be a pie chart, a bar chart, or a regular count|For more information check [Modifying UI](./components/Landing/README.md)
and the [examples folder](./examples/). Also, check [UI_values](./util/ui_values.js)