/Danube-River

Design-focused micro-site telling the story of the danube river – Europe's second largest river, after the Volga.

Primary LanguageJavaScript

Danube River

Design-focused micro-site telling the story of the danube river – Europe's second largest river, after the Volga.

Getting Started

With Docker installed, run the following.

cp .env.example .env
docker-compose up

Adding Dependencies

If you are using Docker make sure you install the dependencies inside the machine.

docker-compose exec app npm add package

Building for Production

Set APP_ENV=production inside the .env file.

cp .env.example .env
docker-compose up -d

Setup NGINX on the server to proxy_pass port 80 through to the app's port.

server {
    listen 80;
    server_name example.com;
    location / {
        proxy_pass http://127.0.0.2:8080;
    }
}

Setup ownership of the public directories to NGINX's www-data user and group.

chown www-data:www-data -R build

When adding new assets, be sure to update the preloading file. This script will do that for you:

node bin/generateAssetsPreload.js

Building Static Files

To generate the static files, run the following. This will create a build directory that contains all the static files.

docker-compose run app npm install && npm run build

Useful

Expected Article Content Modules:

  • Images (Left, Right, Full-width)
  • Pull-out Quotes
  • Video (Inline, full screen)
  • Stats/Infographics (varied designs/graphs)
  • 360 Video (Including GUI options)
  • Image Carousel
  • Audio Player
  • Maps (2D/3D)

Liked Examples:

Landing Page Examples:

Article Page Examples: