OARD (An acronym form of "oh alright"): an Open real-world based Annotation for Rare Diseases and its associated phenotypes
This is a React web app to serve the web app of OARD. The backend is provided by OARD API. Currently it is hosted on the NCATS AWS server (https://rare.cohd.io/). This repo currenly only have the React web app part. The backend Flask API is hosted in another repo. We expect to merge two repos in the near future.
I followed this article to setup up OARD as a flask API + React web app.
You need to install three packages on your machine:
- Npm : The package manager for the Node JavaScript platform.
- Node.js: The JavaScript runtime that you will use to run your frontend project.
- You’ll need to have Node >= 14.0.0 and npm >= 5.6 on your machine.
- Yarn: A package and project manager for Node.js applications.
git clone https://github.com/stormliucong/oard-react.git
cd oard-react
npm install # install dependencies
yarn build
Assuming you have your React application in the /var/cohd-rare/oard-react
directory, change the root configuration in /etc/nginx/sites-available/cohd-rare
to:
server {
location / {
root /var/cohd-rare/oard-react/build/;
index index.html;
try_files $uri $uri/ =404;
}
}