Skip to content

Commit 4b93b35

Browse files
authored
Merge pull request #4 from uc-cdis/chore/initial_setup
Chore/initial setup
2 parents f1f3bff + baf8c29 commit 4b93b35

36 files changed

+358
-181
lines changed

.env.development

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
GEN3_COMMONS_NAME=gen3
1+
GEN3_COMMONS_NAME=heal
22
NEXT_PUBLIC_GEN3_API=https://localhost:3010
3-
NEXT_PUBLIC_GEN3_DOMAIN=https://localhost:3010
4-
5-
# set these if you want to use different endpoints
6-
#NEXT_PUBLIC_GEN3_GUPPY_API=

.env.production

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
GEN3_COMMONS_NAME=gen3
2-
NEXT_PUBLIC_GEN3_API=https://localhost/
3-
NEXT_PUBLIC_GEN3_DOMAIN=https://localhost/
1+
GEN3_COMMONS_NAME=heal
2+
NEXT_PUBLIC_GEN3_API=https://localhost:3010

README.md

+21-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22

3-
This is the base REPOSITORY for Gen3.2 data commons.
3+
This is the NextJS application for the HEAL Data Commons.
44

55

66
## Getting Started
7-
Gen3 Data Commons using the Gen3 Frontend Framework is a matter of the following:
7+
The HEAL Data Commons develop quick startup:
88

9-
* create a clone of [Gen3 Data Commons Application](https://github.com/uc-cdis/commons-frontend-app/)  
9+
* create a clone of [HEAL Data Commons](https://github.com/uc-cdis/heal-data-commons)
1010

1111
* Configure the commons by editing the configuration files in the ```config```
1212

@@ -16,11 +16,11 @@ Gen3 Data Commons using the Gen3 Frontend Framework is a matter of the following
1616

1717
Changes to the Gen3 Data Commons Application can be pulled from the Common Frontend Repository. You need configure git to pull from the Common Frontend Repository.
1818
```bash
19-
git remote add upstream https://github.com/uc-cdis/commons-frontend-app.git
19+
git remote add upstream https://github.com/uc-cdis/heal-data-commons.git
2020
```
2121
or
2222
```bash
23-
git remote add upstream [email protected]:uc-cdis/commons-frontend-app.git
23+
git remote add upstream [email protected]:uc-cdis/heal-data-commons.git
2424
```
2525

2626
changes to ```main``` can be pulled from the Common Frontend Repository by running:
@@ -34,12 +34,12 @@ This documentation is currently less complete than we would like, but we will be
3434

3535
## Installation
3636

37-
The minimum node version is set to v20.11.0 only from an LTS perspective.
37+
The minimum node version is set to v20.71.0.
3838
Node can be downloaded from the official Node.js site. You may also consider using a [Node version manager](https://docs.npmjs.com/cli/v7/configuring-npm/install#using-a-node-version-manager-to-install-nodejs-and-npm).
3939
Your version of Node may not ship with npm v10. To install it, run:
4040

4141
```bash
42-
npm install npm@10.2.4 -g
42+
npm install npm@10.8.2 -g
4343
```
4444

4545
Note: if you see this error:
@@ -51,7 +51,7 @@ you can run ```npx next telemetry disable```
5151

5252
Alternatively, you can use `nvm` to install the correct version of npm:
5353
```bash
54-
nvm install 20.11.0
54+
nvm install 20.17.0
5555
```
5656

5757
### Install Dependencies
@@ -78,3 +78,16 @@ You build a Docker image by:
7878
```bash
7979
docker build .
8080
```
81+
82+
## Configuration
83+
84+
All the configuration files are located in ```config/heal```. As HEAL is currently only used for the landing page the
85+
relevant configuration files are:
86+
87+
* navigation.json
88+
* footer.json
89+
* banner
90+
91+
## Custom Pages
92+
93+
See ```src/pages/SamplePage``` for an example of adding a new page to the HEAL commons.

config/gen3/alternate_colors/dark.json

-9
This file was deleted.

config/gen3/alternate_colors/pallet2.json

-11
This file was deleted.

config/gen3/alternate_colors/urban.json

-9
This file was deleted.

config/gen3/footer.json

-18
This file was deleted.

config/gen3/navigation.json

-72
This file was deleted.

config/gen3/themeFonts.json

-5
This file was deleted.

config/heal/banner.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"message": "[View the latest studies that have shared data with the HEAL Data Platform!](/landing/newly-available-datasets)",
4+
"level": "MESSAGE",
5+
"dismissible": true,
6+
"isExternalLink": false,
7+
"id": 0
8+
},
9+
{
10+
"message": "Our helpdesk has moved! Starting 8/21, please contact us at [[email protected]](mailto:[email protected])",
11+
"level": "MESSAGE",
12+
"dismissible": false,
13+
"isExternalLink": false,
14+
"id": 0
15+
}
16+
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)