This project was generated with Angular CLI.
Generally, LU-Explorer needs a datasource, which is provided by the Paradox Server. That server provides the data from the game database to the web interface, which makes it a core component of this app.
This needs a
paradox.toml config file in the working directory – a minimal example is provided here. The most important part is to point the
explorer_spa key to the
docs folder in this repo and the
locale key to a copy of
install the API server binary with
$ cargo install --git https://github.com/Xiphoseer/lu-res-api-server.git --branch main
Then, clone this repo and create
clientfolders next to it
$ git clone https://github.com/Xiphoseer/lu-explorer.git $ mkdir lu-res client
- Put at least
res/cdclient.fdbfrom an LU client into this
- You can now build the
lu-explorerweb-app continuously with
$ cd lu-explorer $ npm install $ ng build --watch
- Finally, run the API server, which will also serve the web-app
$ RUST_LOG=info paradox-server
For now, you need to restart that server whenever you change the
The alternative is to:
src/environments/environment.tsto an existing API server.
src/proxy.conf.jsonto a matching version of
$ npm install $ ng serve
ng generate component component-name to generate a new component. You can also use
ng generate directive|pipe|service|class|guard|interface|enum|module.
ng build to build the project. The build artifacts will be stored in the
docs/ directory. Use the
--configuration production flag for a production build. For building to github pages also use
ng build --configuration production command is used.
Running unit tests
ng test to execute the unit tests via Karma.
Running end-to-end tests
ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use
ng help or go check out the Angular CLI README.