-
Node.js
(https://nodejs.org/en/), version 10.16.0. -
We recommend using
n
(https://github.com/tj/n) as the Node.js package manger. -
npm
(https://www.npmjs.com/) is bundled withNode.js
and is required to manage application dependencies. -
git-secrets must be installed
Clone the data-portal
repo:
git@github.com:HumanCellAtlas/data-portal.git
If you have push access to the remote, you'll need to install git-secrets, enable the commit hooks for it and configure patterns for AWS and Google:
git secrets --install
git secrets --register-aws
git secrets --add '[-]----BEGIN.PRIVATE.KEY-----'
The Gatsby command line tool is used to develop, build and serve (locally) the Data Portal.
npm install --global gatsby-cli
Run the following command from the project's root directory to install the required packages:
npm install
Run the following command from the root directory:
gatsby develop
The development server can be viewed at:
localhost:8000
Run the following command to build the application:
gatsby build
Run the following command to view a built version of the application, locally:
gatsby serve
The built version can be viewed at:
localhost:9000
HCA Data Preview uses Material Components (https://material.io/components/web/) for its Material Design library.