Skip to content

Latest commit

 

History

History
executable file
·
76 lines (38 loc) · 2.57 KB

README.md

File metadata and controls

executable file
·
76 lines (38 loc) · 2.57 KB

HANIoTDashboard

node npm npm typescript bootstrap echarts

This project was generated with Angular CLI version 7.3.6.

Development server

Configure the environment variables in the .env file see the .env.example file.

Run npm install

Run npm run start:dev for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Development production

Run npm install

Run npm run start:prod for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Docker

How to install

Follow all the steps present in the official documentation starting from the Install Docker CE chapter

Building the project container image

docker build -t IMAGE_NAME:IMAGE_VERSION DOCKERFILE_PATH

Example:

docker build -t haniot-dashboard:v0.1 .

Set the environment variables

You can set directly on Dockerfile or in Docker-Compose file

Executing the project container image

docker run -p HOST_PORT:CONTAINER_PORT -it IMAGE_NAME:IMAGE_VERSION

Example:

docker run -p 4200:4200 -it haniot-dashboard:v0.1

Access API

http://localhost:4200