https://github.com/engineering-research-and-development/serena-shmi
https://github.com/engineering-research-and-development/serena-shmi
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/engineering-research-and-development/serena-shmi
- Owner: Engineering-Research-and-Development
- Created: 2019-10-23T12:40:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T13:20:11.000Z (over 2 years ago)
- Last Synced: 2025-02-19T12:56:03.003Z (4 months ago)
- Language: Vue
- Size: 27.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How to run SHMI locally
#### Prerequisites
- nodeJS 10+
- npm 6+#### Steps
1. Customize development configuration of shmi microservices under```/shmi-xxx/config/index.js```
2. Install serena-shmi modules
```sh
$ npm install
```3. Install modules of shmi-mdinterface, shmi-webserver and shmi-dashboard
```sh
$ npm run install
```4. Run all services
```sh
$ npm run start
```## How to run SHMI on docker
#### Prerequisites
- docker
- docker-compose
- *nodeJS 10+
- *npm 6+\* only required to build shmi-dashboard on your host machine
#### Steps
1. Customize configuration in docker-compose.yml
2. Customize shmi-dashboard environment by editing ".env" file inside shmi-dashboard folder. More precisely in .env file:
```
VUE_APP_WEB_SERVER_PROTOCOL=PLACEHOLDER_PROTOCOL_SHMI_WEBSERVER_PLACEHOLDER
VUE_APP_WEB_SERVER_HOST=PLACEHOLDER_IP_ADDRESS_SHMI_WEBSERVER_PLACEHOLDER
VUE_APP_WEB_SERVER_PORT=PLACEHOLDER_PORT_SHMI_WEBSERVER_PLACEHOLDER
```
- _{PLACEHOLDER_PROTOCOL_SHMI_WEBSERVER_PLACEHOLDER} must be replaced with the protocol you're going to use to forward requests from shmi-dashboard to shmi-webserver, thus, "http" or "https"_
- _{PLACEHOLDER_IP_ADDRESS_SHMI_WEBSERVER_PLACEHOLDER} must be replaced with ip address of the server hosting shmi_webserver_
- _{PLACEHOLDER_PORT_SHMI_WEBSERVER_PLACEHOLDER} must be replaced with port of the server hosting shmi_webserver_N.B You can also replace both the placeholder at runtime if you need to.
2. Build your shmi-dashboard in production mode by moving inside ```/shmi-dashboard``` and running
```sh
$ npm run build
```
3. Copy content of ```dist``` folder, created after build, to upper level folder ```shmi-dashboard-dist```3. Clear previous installations by running:
```sh
$ clearEnv.sh
```4. Finally run docker-compose
```sh
\# docker-compose up
```## Authors
* Salvatore Andolina (SynArea Consultants s.r.l)
* Manfredi Pistone (ENGINEERING - ingegneria informatica s.p.a)