Skip to content

asascience-open/model_viewer_landing_page

Repository files navigation

IOOS Model Viewer Landing

The front page / home page for the IOOS Model Viewer landing page

Installation

  1. Download and install nodeJS (should come with npm)

  2. Install yarn using your package manager. Instructions can be found here.

  3. Use yarn to build the project dependencies

    yarn
    
  4. Run the project

    node bin/www
    
  5. Accessing via localhost in browser:

  http://localhost:3000

Docker build

The Docker build is far simpler:

$ docker build -t <tag> -f Dockerfile .

NOTE: ensure that public/lib is removed before building. If it exists, yarn will attempt to use the existing one in the Docker build, breaking the symlink in the container and lead to ugly CSS.

Developing

Deployed files:

___ is this repo.

Most of this project are static files. The initial pages are loaded as jade templates.

Update the .env file with config variables

For testing Google Analytics and things that use env variables. Update the .env file in your root folder similar to this:

GOOGLE_ANALYTICS_ID=YOUR_ENV_VAR_HERE