0.0.1 • Published 3 years ago
wwm-mqtt-client v0.0.1
How to debug web part on a MAC
- install DOCKER desktop
- launch Docker Desktop
- install Visual Studio Code
- open the project on the main dir of the project "WatchWithMe"
- in the terminal (inner terminal in VSC) launch the command
-
npm --prefix ./web/ run build watch
- (you should have npm installed) - open a new terminal and launch the command for building
-
docker-compose --env-file infrastructure/.env.local -f infrastructure/docker-compose.yml up --build
- if you need to build just the "server" for example the command should be -docker-compose --env-file infrastructure/.env.local -f infrastructure/docker-compose.yml up --build server
- after building do a shutdown (ctrl-c)
- and launch everything but the web part using
-
docker-compose --env-file infrastructure/.env.local -f infrastructure/docker-compose.yml up server jwt url db adminer
- at this point if you installed the plugin "live http server" on VSC, you can launch the HTML you want to debug (using the contextual menu)
- during the building sometimes dockers leaves some spourious images
- to ge the list of images do a
-
docker images
- if you see any image named with
'<none>'
you can do a cleanup using -docker rmi $(docker images -f "dangling=true" -q)