Skip to content
/ ui Public

User Interface for logistic process.

Notifications You must be signed in to change notification settings

FIPost/ui

Repository files navigation

ipost-logo

UI

Publish Docker image Build image

VueJS front-end for the logistal process of managing packages.

Getting Started

Install node modules.

npm install

Run

npm run serve

You will get the following output.

  App running at:
  - Local:   http://localhost:8080/ 
  - Network: http://192.168.1.74:8080/

Issues checking in progress...
No issues found.

Copy the .env.example file and paste it as a new file named .env.

Use the ip address from the line - Network: http://192.168.1.74:8080/ and replace ipadress in you .env file.

VUE_APP_API_GATEWAY=http://192.168.1.74:8123
VUE_APP_URL=http://192.168.1.74:8080

Press ctl + c to exit the current build and rerun. Serve VueJS

npm run serve

Getting Started with Docker

The docker image used in this build uses a Nginx webserver to serve the SPA VueJS content on port 80.

Build

Choose on of the following.

Default build

docker build -t ui .

Custom build

Replace example.nl with your custom urls.

docker build -t ui --build-arg VUE_APPURL=www.example.nl --build-arg VUE_APP_APIGATEWAY=gateway.example.nl .

Run

docker run -p 8080:80 --name ui-app ui