The front page / home page for IOOS OSMC
Download and install nodeJS (should come with npm)
Install yarn
using your package manager. Instructions can be found here.
Use yarn
to install the package and its dependencies:
$ yarn
Run the project
node bin/www
Most of this project are static files. The initial pages are loaded as jade templates.
$ 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.
version: '2'
services: ioos-osmc: image: osmc:0.0.1 ports:
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