Operation Pandora Trigger Command Center https://opt4.net
 
 
 
 
 
 
Go to file
Florian Hartwich 96163b4266 use svg mat icon and drop icon dependency 2018-07-06 17:01:59 +02:00
api use svg mat icon and drop icon dependency 2018-07-06 17:01:59 +02:00
backup add vehicle kill log table export for backup/dredd 2018-03-28 14:58:48 +02:00
docs apply ngFor on fraction stats toggle btns 2018-07-03 20:26:55 +02:00
static use svg mat icon and drop icon dependency 2018-07-06 17:01:59 +02:00
.editorconfig first commit 2017-05-10 11:04:06 +02:00
.gitignore add file resources for apib tests and env dependent tmp file usage for tests 2018-03-30 20:21:28 +02:00
README.md Update 'README.md' 2018-05-20 08:45:38 +02:00
package-lock.json redesign war list menu 2018-07-05 20:44:12 +02:00
package.json Fix deploy exec script 2018-07-02 22:18:37 +02:00
pm2-start.json Add pm2 setup to 3rd party init 2018-02-16 15:34:31 +01:00

README.md

Operation Pandora Trigger Commandcenter

A MEAN Application created for operation-pandora.com Arma3 Community

Installation

All steps described here are working with a Debian based Linux system

Setup required 3rd Party Software

Setup for Development

Run the installation script located in the docs folder:

./docs/opt-cc-environment/3rd-party-install.sh

It installs NPM, Node and MongoDB on latest versions. In addition, it sets up the mongo deamon to start up automatically with the system.

Setup for Production

NOTE: It his highly recommended not to run the following steps as root user!

For production setup run the script, described in Setup for development, adding the parameter prod

./docs/opt-cc-environment/3rd-party-install.sh prod

This adds the pm2 process manager to be installed and start the opt-cc server as pm2 process. Run the sudo command printed as last output to configure the pm2 process for automatic start on the system.

Development

Run and Modify Application

NOTE: Do not use the execution described here in any production environment! It will make the running application highly vulnerable.

Before triggering the environment execution run

npm install

inside the main folder, to process all needed npm package installations for the program execution.

To compile the Angular code and afterwards start the Express server with nodemon for development purpose run

npm run dev

Any changes on api code will trigger an automatic restart of the Express server.

Changes on static code can be submitted with

npm run deploy-static

The page must be reloaded after this build step is finished, in order to make changes visible.

Run Tests

TODO

License Information

Express API (/api)

published under CC BY-SA 4.0 License
Main concept for API Server, pagination and MongoDB usage by Prof. Dr.-Ing. Johannes Konert
All endpoints, signature image builder and Arma3 RPT-Log parsing by Florian Hartwich

Angular 5 Frontend (/static)

published under MIT License