Skip to content

WengLab-InformaticsResearch/oard-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 36.1%
  • JavaScript 31.9%
  • Jupyter Notebook 22.3%
  • Python 8.1%
  • HTML 1.1%
  • CSS 0.5%