Public | Automated Build

Last pushed: 3 months ago
Short Description
Mondora Website Frontend
Full Description

Mondora Website Front

This is the repository of of the mondora website frontend. The source code for
the backend can be found at
mondora/mondora-website-back.

Front-end configuration

How-to

The front-end app can be configured by running npm run config. All environment
variables starting with __APP_CONFIG__ will be collected into an object. That
object is exported as the global variable window.APP_CONFIG in
/assets/js/app-config.js.

Example:

__APP_CONFIG__KEY_1=value_1 __APP_CONFIG__KEY_2=value_2 npm run config

will produce the following /assets/js/app-config.js:

window.APP_CONFIG = {
    KEY_1: "value_1",
    KEY_2: "value_2"
};

Options

  • BACKEND_HOST: the backend host to connect to, defaults to localhost:3000
  • BACKEND_USE_SSL: whether to use SSL to connect to the backend, defaults to
    false

Static server configuration

How-to

The static server can be configured simply by defining environment variables.

Options

  • PRERENDER_SERVICE_URL: url of the prerender service. This is a configuration
    option for prerender-node

Development environment setup

First, make sure to have node >0.12.0 or iojs >2.0.0 installed.

git clone https://github.com/mondora/mondora-website-front.git
cd mondora-website-front
npm install
npm run dev

Keep in mind that you also need to have the backend up and running. For
instructions on how to set that up, see
mondora/mondora-website-back.

Docker Pull Command
Owner
mondora
Source Repository

Comments (0)