Skip to content

Commit b8000fa

Browse files
author
Anett Seeland
authored
Updated versions and docu for new dev container
1 parent 11ca059 commit b8000fa

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Readme.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
## Prerequisites
66

7-
- NodeJS ^8.9
8-
- npm ^5.6
7+
- NodeJS ^18
8+
- npm ^8
99

1010
## Project setup
1111

12-
The code for the frontend in inside the `viplab-standalone-frontend`-folder.
12+
The code for the frontend is inside the `viplab-standalone-frontend`-folder.
1313
The first step ist to move inside that folder:
1414
```
1515
cd <path-to-Vue-Frontend-Repo>/viplab-standalone-frontend
@@ -55,17 +55,16 @@ npm run serve
5555
Then open your browser on <http://localhost:8080>
5656
(or the url specified on the console after successfully running the previous command)
5757

58-
Alternativly, you can build the node-dev container (Dockerfile-dev in this repository).
58+
Alternativly, you can use the viplab/npm-container (or build the Dockerfile-dev in this repository).
5959
Ensure a clean project directory (without node_modules or dist folder) to be in sync with the container while developing. First, run the container with the 'install' command, mounting the working directory to your project directory.
6060
```
61-
docker build -f Dockerfile-dev -t viplab-vue-frontend:dev .
62-
docker run --rm -v <path-to-project-dir>:/app viplab-vue-frontend:dev install
61+
docker run --rm -v <path-to-viplab-standalone-frontend-dir>:/app viplab/npm install
6362
```
64-
Then you can start the container with hot reloading or, use the viplab-docker-dev-env compose-file with profile "frontend-dev".
63+
Then you can start the container with hot reloading or, use the viplab-docker-dev-env compose-file with profile "vue-mount".
6564
```
66-
docker run -it -p 8081:8081 --rm -v <path-to-project-dir>:/app --name viplab-vue-frontend-dev viplab-vue-frontend:dev
65+
docker run -it -p 8081:8081 --rm -v <path-to-viplab-standalone-frontend-dir>:/app --name viplab-vue-frontend-dev viplab/npm run serve -- --host 0.0.0.0
6766
```
68-
When you need install further packages while to container is running use:
67+
When you need install further packages while to container is running (and you named it )viplab-vue-frontend-dev"), use:
6968
```
7069
docker exec viplab-vue-frontend-dev npm install XXX
7170
```

0 commit comments

Comments
 (0)