Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.92 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.92 KB

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.

An overview of OARD project

overview

How to use OARD

How to setup OARD

I followed this article to setup up OARD as a flask API + React web app.

1. Requirement

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.

2. Installation on Ubuntu

git clone https://github.com/stormliucong/oard-react.git
cd oard-react
npm install # install dependencies
yarn build

3. Deploying on Nginx

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;
        }
        
}