Frontend application for the transmedia project novemlab: https://github.com/ghiringh/transmedia
git clone https://github.com/MediaComem/novemlabfront.git
cd novemlabfront
npm ci
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).
Missing feature: error check. For example, no message are send to the client if they try to start not with the first step.
Run the application in production mode:
npm start
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
).