Go to file
Thor77 fa1419d7fc
Add kubernetes deploy step
2019-05-14 21:26:31 +02:00
js Replace for-in-loop with for-of-loop (suggested by eslint) 2019-05-09 14:48:43 +02:00
kubernetes Add kubernetes deployment files 2019-05-14 21:26:30 +02:00
pages Format every js file to comply with the new eslint rules 2019-05-09 14:48:43 +02:00
static Tweak Design 2019-04-22 16:41:37 +02:00
.dockerignore Add .gitlab-ci.yml 2019-05-08 15:50:02 +02:00
.eslintrc.json Add some eslint rules 2019-05-09 14:48:43 +02:00
.gitignore Resolve any errors in the syntax 2019-04-08 11:08:43 +02:00
.gitlab-ci.yml Add kubernetes deploy step 2019-05-14 21:26:31 +02:00
.hound.yml Add proper name for eslint config file 2018-12-11 08:38:56 +01:00
Dockerfile Use multistage build in Dockerfile to shrink image size 2019-05-08 14:27:41 +02:00
README.md Update README.md: tagging latest is redundant 2019-05-08 14:19:21 +02:00
next.config.js Rename environment variable API_URL to TURNIERE_API_URL 2019-05-08 13:31:50 +02:00
package-lock.json Add server-side clean urls 2018-11-07 14:15:26 +01:00
package.json Add eslint-config-google to dev dependencies 2019-05-09 14:48:43 +02:00
server.js Automatically apply eslint rules 2019-05-09 14:48:43 +02:00
style.css Add support for custom css files 2018-11-08 11:20:36 +01:00
yarn.lock Add google style guide to eslint config 2019-05-09 14:48:43 +02:00

README.md

turniere-frontend

Development Setup

Prerequisites

You'll need Node.js and a package manager for Node.js (like npm or Yarn; We recommend Yarn) installed on your system in order to run this program. You can see how to install Node.js here.

Setup the Project

First of course you'll need to clone this repository:

$ git clone https://github.com/turniere/turniere-frontend.git

Afterwards you'll have to install the used libraries using following command:

$ yarn install

Then you can run the development server by executing:

$ TURNIERE_API_URL=https://api.example.com yarn run dev

The environment variable TURNIERE_API_URL must contain an valid url to a turniere backend server.

In production environment the server runs on port 80, otherwise on port 3000.

Production Setup: Build the Docker Container

$ docker build -t turniere-frontend .

The built container exposes port 80.