Coder Social home page Coder Social logo

finer-vision / danube-river Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 4.0 237.66 MB

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

Home Page: http://danube-river.b42.co.uk/

Shell 0.04% Dockerfile 0.04% JavaScript 78.61% HTML 0.29% CSS 21.03%

danube-river's Introduction

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:

danube-river's People

Contributors

enijar avatar tadasmajeris avatar

Stargazers

Elliott Judd avatar Dan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.