This file is mostly aimed to developers.
npm -g i typescriptnpm run build-all in the rootAt this stage you have a javascript output. For binary files you’ll also have to npm run dist-bin.
You could instead run dist to run both build-all & dist-bin.
npm installnpm run watch-server-proxied and leave it running. It will serve server stuff plus will proxy frontend and admin files.npm run start-frontend and leave it running. It will serve on port 3005.npm run start-admin and leave it running. It will serve on port 3006If you don’t want this proxying version, you can use npm run watch-server but after both frontend and admin have
been built, so their files are available in dist folder.
To run tests
npm run build-allnpm run server-for-test and leave it running.npm testAlternatively you can run a development server, just be sure to load config from tests folder.
The project is roughly divided in Server + Frontend + Admin, where Frontend is a web interface intended to access
shared files, while Admin is the web interface for configuration/administration.
Server lies in the root of the project, with its “src” folder, while Frontend and Admin are inside folders “frontend”
and “admin” respectively, with their “src” folder within.
Additionally, you have the following folders:
uri.At the moment the admin-panel was designed to be completely separated from the “user” frontend to keep the latter smaller and to allow alternative frontends creation without having to deal with the complexity of the admin-panel.
Of course this comes with a price to pay on the programmer’s side, more work to do.