Repository navigation
Installation
It recomendet to use nodeJS 18.X LTS
See the Configuration site, or the next step
-
Download latest checkline-frontend-.zip from the releases
-
Unzip into the webserver root
-
Configure web server
# nginx
location / {
try_files $uri$args $uri$args/ /index.html;
}
- Download latest checkline-backend-.zip from the releases
- unzip the downloaded file
- Run
npm install - Edit configuration (See config section)
- start with
node ./main.js
- It is highly recommended to tunnel the backend tarffic over an reverse proxy with https support. host
- Hosting backend/ frontend on other subdomains is UNTESTED
- Its recommendet to host the backend on a path of the frontends subdomain (Because of CORS)
- Install angular cli:
npm install -g @angular/cli - Change to frontend folder
- Run
npm install
- 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