Update 'README.md'
parent
06a5074d75
commit
b1cc8a8f9a
10
README.md
10
README.md
|
@ -14,7 +14,9 @@ All steps described here are working with a Debian based Linux system
|
||||||
|
|
||||||
Run the installation script located in the docs folder:
|
Run the installation script located in the docs folder:
|
||||||
|
|
||||||
|
```text
|
||||||
./docs/opt-cc-environment/3rd-party-install.sh
|
./docs/opt-cc-environment/3rd-party-install.sh
|
||||||
|
```
|
||||||
|
|
||||||
It installs NPM, Node and MongoDB on latest versions.
|
It installs NPM, Node and MongoDB on latest versions.
|
||||||
In addition, it sets up the mongo deamon to start up automatically with the system.
|
In addition, it sets up the mongo deamon to start up automatically with the system.
|
||||||
|
@ -25,7 +27,9 @@ In addition, it sets up the mongo deamon to start up automatically with the syst
|
||||||
|
|
||||||
For production setup run the script, described in _Setup for development_, adding the parameter `prod`
|
For production setup run the script, described in _Setup for development_, adding the parameter `prod`
|
||||||
|
|
||||||
|
```text
|
||||||
./docs/opt-cc-environment/3rd-party-install.sh prod
|
./docs/opt-cc-environment/3rd-party-install.sh prod
|
||||||
|
```
|
||||||
|
|
||||||
This adds the [`pm2` process manager](http://pm2.keymetrics.io/) to be installed and start the _opt-cc_ server as `pm2` process.
|
This adds the [`pm2` process manager](http://pm2.keymetrics.io/) 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.
|
Run the `sudo` command printed as last output to configure the `pm2` process for automatic start on the system.
|
||||||
|
@ -37,19 +41,25 @@ Run the `sudo` command printed as last output to configure the `pm2` process for
|
||||||
|
|
||||||
Before triggering the environment execution run
|
Before triggering the environment execution run
|
||||||
|
|
||||||
|
```text
|
||||||
npm install
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
inside the main folder, to process all needed npm package installations for the program execution.
|
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
|
To compile the Angular code and afterwards start the Express server with `nodemon` for development purpose run
|
||||||
|
|
||||||
|
```text
|
||||||
npm run dev
|
npm run dev
|
||||||
|
```
|
||||||
|
|
||||||
Any changes on `api` code will trigger an automatic restart of the Express server.
|
Any changes on `api` code will trigger an automatic restart of the Express server.
|
||||||
|
|
||||||
Changes on `static` code can be submitted with
|
Changes on `static` code can be submitted with
|
||||||
|
|
||||||
|
```text
|
||||||
npm run deploy-static
|
npm run deploy-static
|
||||||
|
```
|
||||||
|
|
||||||
The page must be reloaded after this build step is finished, in order to make changes visible.
|
The page must be reloaded after this build step is finished, in order to make changes visible.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue