Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (28 loc) · 1.5 KB

README.md

File metadata and controls

47 lines (28 loc) · 1.5 KB

MyStudies/MyTeaching Frontend Application

Prerequisites

  • Node.js v8.9.4 or greater installed
  • npm@5.6.0 or greater installed

In addition, the following localhost alias configuration is also needed (in /etc/hosts on Linux/macOS):

127.0.0.1       local.student.helsinki.fi
127.0.0.1       local.teacher.helsinki.fi

Running locally

Prerequisites

Obar integration

If backend server has obar.baseUrl (local config) configured obar must also be running locally; see obar documentation. Default configuration requires using simulated server environment.

If you want to use webpack served development obar, obar.baseUrl on backend config must point to it and jwtPrivateKey on backend and jwtPublicKey on obar backend configuration must match, see.

Install dependencies

npm install

Start frontend application

npm run dev

This will open the app in a new browser window at http://local.student.helsinki.fi:3000.

HTTPS

Generate required keys

npm run genkeys

Start dev server

npm run dev:https