Local zally Windows installation doesn't work
See original GitHub issueHello,
I followed the README documents and related issues and almost installed zally locally on the Windows 10 machine. I am able to execute all gradlew tasks, but when I am executing the bootRun it stops after initiating the back-end server 0% as script indicated). Back-end (localhost:8000) for sure works since the command zally --linter-service "http://localhost:8000" --format pretty lint no_must_violations.yaml
brings the meaningful results. I can also get the list of the rules from the browser executing http://localhost:8000/supported-rules as well as all 200+ tests executed successfully. Attached is the complete output from my DOS shell.
On the other hand, it never brings front-end running on 8080 port. I am guessing it might be some proxy setting between zally back-end and front-end need to be done, but not sure.
I also successfully mounted / build the web-ui component separately with zally server running in its current state. Again all build tasks are complete successfully with npm and / or yarn, but I can run neither dev nor production builds. Both brings similar exceptions ‘‘NODE_ENV’ is not recognized as an internal or external command,’. DEV mode also brings some JS exception. Again, the whole output from another DOS shell is attached.
Please let me know if any other information needed.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (5 by maintainers)
Top GitHub Comments
Let’s add this page to the docs.
These are tested notes based on my setup, happy to move them into a markdown document in the project if that helps…
Building Under Windows Subsystem for Linux
The following notes document my working environment for building and testing a full Zally installation from a Windows 10 workstation.
Prepare Windows Environment
Download and install Docker for Windows
Open Microsoft Store
Search for linux
Install Debian (or Ubuntu, other linuxes may need different commands for package management)
Launch the Debian console
Prepare Linux Environment
In the Debian console:
Install some general prerequisites
(I was quite surprised to see that
make
andg++
were necessary to build some dependency of the web-ui)Install NodeJS
Make Windows docker binaries available on linux path:
Clone Zally into a folder easily addressable under Windows (C:\Zally)
Build and Run
Run the following script to build and then run the services under docker:
It’ll take a while but eventually you’ll see something like the following to indicate that we’re ready to connect:
Testing
Use a browser to check that things are working correctly:
Troubleshooting
Variations on the following error messages are a regular occurrence when building the web-ui under Windows. The command in question can typically be rerun without producing exactly the same occurrence, so incrementally the command gets further each run. (Producing this guide took 5x attempts at the web-ui build before a full run completed).