ioos / comt-landing

IOOS COMT Landing page
https://comt.ioos.us
MIT License
0 stars 5 forks source link

comt-landing

The homepage for https://comt.ioos.us

Building the project

  1. Download and install nodejs (which comes with npm) using your package manager

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

  3. Use npm to install grunt

$ npm install -g grunt
  1. Use yarn to install the package and its dependencies:
$ yarn
  1. Following a successful installation, use grunt to compile static elements.
$ grunt
  1. To run the project:
$ node bin/www

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.

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