Repository navigation
Installation
Jonbeckas edited this page Apr 30, 2021
·
8 revisions
- Install angular cli:
npm install -g @angular/cli - Change to frontend folder
- Run
npm install
- Change backendUrl in src/environments/environment.prod.ts
- If you want to use the app not in the root directory in an webserver, also change src/index.html and set
<base href="/to/your/subdir">.
Run npm build --prod --build-optimizer
Just deploy in on your favourite web server. To make the angular router working you may need some configuration changes. e.g. Nginx:
location / {
try_files $uri$args $uri$args/ /index.html;
}
With that config ngnix tries to parse paths as arguments for index.html.
Run
npm install
in the backend folder.
On some devices e.g. the raspberry pi it is necessary to build the argon2 module manualy. For this just run
npm install argon2 --ignore-scripts
npx node-pre-gyp rebuild -C ./node_modules/argon2For more information see (https://github.com/ranisalt/node-argon2).
Run npm run build:dev. This will create the build folder from where you could start the backend with node build/server/server.js