github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/apps/sys.monitor/README.md (about) 1 # Monitor Application 2 3 ## Principles 4 - The main website sources kept in folder `site.main.src` 5 - The built version of main website kept in folder `site.main` and included into application as a static resource 6 - The main website is built by website developer when required 7 8 ## Requirements 9 The following components are required to develop and/or build the main website: 10 - Node.JS 11 12 ## Main Website Development 13 14 ```shell 15 # open source folder 16 cd ./site.main.src 17 18 # download dependencies 19 npm i 20 21 # start dev server 22 npm start 23 ``` 24 The development server is available by URL http://localhost:3000/static/sys/monitor/site/main/. The dev server reloads the page on changes automatically. 25 26 ## Main Website Building 27 ```shell 28 # open source folder 29 cd ./site.main.src 30 31 # download dependencies 32 npm i 33 34 # build 35 npm run build 36 ``` 37 The website is compiled into `site.main` directory. When app starts, the main website is available by the URL http://localhost/static/sys/monitor/site/main/