https://github.com/mediacomem/novemlabfront
Front app for transmedia project novemlab https://github.com/ghiringh/transmedia
https://github.com/mediacomem/novemlabfront
Last synced: about 1 year ago
JSON representation
Front app for transmedia project novemlab https://github.com/ghiringh/transmedia
- Host: GitHub
- URL: https://github.com/mediacomem/novemlabfront
- Owner: MediaComem
- Created: 2017-04-24T08:15:46.000Z (about 9 years ago)
- Default Branch: PO2020
- Last Pushed: 2022-12-12T05:46:21.000Z (over 3 years ago)
- Last Synced: 2025-02-14T17:43:25.876Z (over 1 year ago)
- Language: CSS
- Size: 75.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Novem Lab
Frontend application for the transmedia project novemlab:
https://github.com/ghiringh/transmedia
- [Installation](#installation)
- [Development](#development)
- [Production](#production)
- [Configuration](#configuration)
## Installation
```bash
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](#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`](./.env.sample)).