MediaComem / novemlabfront

Front app for transmedia project novemlab https://github.com/ghiringh/transmedia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Novem Lab

Frontend application for the transmedia project novemlab: https://github.com/ghiringh/transmedia

Installation

git clone https://github.com/MediaComem/novemlabfront.git
cd novemlabfront
npm ci

Development

Create a local environment file:

cp .env.sample .env

If you are also running the Novem API locally and are not using a reverse proxy, you can configure a proxy to avoid CORS issues. See Configuration below.

Run the application in development mode with live code reload:

npm run dev

Visit http://localhost:8080 (if you are using the default port).

Note

Missing feature: error check. For example, no message are send to the client if they try to start not with the first step.

Production

Run the application in production mode:

npm start

Configuration

Environment variable Default value Description
$NOVEM_API_URL /api URL where the Novem API can be reached.
$NOVEM_API_PROXY_URL - If specified, requests to the Novem API will be proxied to avoid CORS issues.
$NOVEM_PORT 8080 Port on which the application's HTTP server will listen to.

See [config.js][./config.js] for more information.

In development, environment variables can be set by creating an .env file (see .env.sample).

About

Front app for transmedia project novemlab https://github.com/ghiringh/transmedia


Languages

Language:CSS 59.0%Language:JavaScript 28.8%Language:HTML 12.2%