Skip to content

anvilproject/anvil-portal

Repository files navigation

Anvil Portal

The front-facing AnVIL user portal located at https://anvilproject.org

AnVIL is an Analysis, Visualization, and Informatics Lab-space for democratizing genomic data access, sharing and computing across large genomic-related data sets.

Content Contributor Guide

Information about creating/modifying the site content can be found here: https://anvilproject.org/content-guide

Setting Up a Developer Workspace

Requirements

Setup

Clone Repo

Clone the anvil-portal repo:

git@github.com:anvilproject/anvil-portal.git
Install Gatsby Command Line Tool

The Gatsby command line tool is used to develop, build and serve (locally) the Data Portal.

npm install --global gatsby-cli
Install Packages

Run the following command from the project's root directory to install the required packages:

npm install

Development Server

Run the following command from the root directory:

npm start

Or if using Windows:

npm run start-windows

The development server can be viewed at:

localhost:8000

Building

Run the following command to build the application:

npm run-script build

Or on Windows:

npm run build-windows

Local Production Version

Run the following command to view a built version of the application, locally:

gatsby serve

The built version can be viewed at:

localhost:9000

Troubleshooting installation on Windows

  • Make sure that Python and Visual C++ Build Tools are installed (see Gatsby documentation).

  • If Gatsby crashes because of missing files, running npm rebuild may help.