You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hardi 845593b2ec Release v1.9.4 (#59) 6 months ago
backup Update backup.sh 7 months ago
docs Update db schema 7 months ago
server Release v1.9.3 - navigation rework (#56) 6 months ago
static Release v1.9.4 (#59) 6 months ago
.editorconfig first commit 2 years ago
.gitignore Fix gitignore 7 months ago
README.md rename module 'api' to 'server' 7 months ago
package-lock.json Release v1.9.3 - navigation rework (#56) 6 months ago
package.json Release v1.9.4 (#59) 6 months ago
pm2-start.json HOTFIX: api package renaming issues 7 months ago

README.md

Operation Pandora Trigger Commandcenter

A MEAN Stack application created for https://www.opt4.net 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 server 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

NodeJS Express Server (/server)

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 6 Frontend (/static)

published under MIT License