Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

WISVCH/symposium-2017

Repository files navigation

Symposium

This is the code for the Symposium website. This website provides information about the annual event at W.I.S.V 'Christiaan Huygens'.

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run yarn run serve to serve your application locally.

Installing dependencies

If you do not have bower yet, install it by running:

$ yarn global add bower

After you have done this, install all the dependencies with:

$ bower install
$ yarn

When adding dependencies later, it is advised to add them to the bower.json file.

Viewing Your Application

$ yarn run serve

Ordering tickets

To be able to order tickets, you need to run WISVCH/Payments on localhost:9000.

Building Your Application

$ yarn run build

This will create a build/ folder containing an unbundled builds, both run through HTML, CSS, and JS optimizers.

You can serve the built version with:

$ yarn run serve build

Open localhost:8737/2017/ to view the application

Docker

Build

Before you are able to use deploy the container, the container first has to be built. This is done with:

docker build -t symposium ./

The -t flag indicates that the container will be given the symposium flag when built, this is to keep track of the containers and some versioning. The ./ indicates the folder to build from.

To list all built images:

docker images

Run

To view the container after it has finished building run:

docker run -p 8080:80 symposium:latest

The -p 8080:80 indicates that the container has its internal port 80 exposed to port 8080 on the host machine. This means that the application is now visible on port 8080. You can also specify older builds with replacing the :latest tag with another version like :7d9495d03763.

Open localhost:8080/2017/ to view the application

If you need to manually inspect the machine with terminal access, execute:

docker run -it -p 8081:80 symposium:latest sh

Clean

Performing builds creates images that take up storage space. To clean some of this storage space, you can use these commands:

docker rm $(docker ps -aq)

This kills and removes all running and stopped containers.

docker rmi $(docker images -aq)

This removes all previously built images that are present on the machine.