|Pixdigit 64ca4344fc||1 year ago|
|frontend||1 year ago|
|.gitignore||1 year ago|
|.jshint||1 year ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
|debug.sh||1 year ago|
|fileTree.go||1 year ago|
|go.mod||1 year ago|
|go.sum||1 year ago|
|main.go||1 year ago|
|project.json||1 year ago|
This Project uses the fantastic Wails. Basically think electron but with a Go backend. See the Wails installation instructions on how to install. This should also get Node and Go for you. Make sure Wails is in your $PATH variable so you can use the wails CLI.
When you want to develop for the frontend you can just run
wails serve in the project directory. This should start a local server with the backend running. To start the frontend run
npm run serve in the
frontend directory which you should then be able to reach on localhost:8080. Changes to the frontend should be automatically build and the frontend should reload. Sometimes, however, you need to refresh the tab for things to work. Also, changes to the backend are not build automatically, so you need to stop wails and run
wails serve again.
If you plan to do more work on the backend I made a small shell script
debug.sh. On other platforms just run
wails build -d which will produce a binary you can then use to test. When building you also don’t need to build the frontend separately as it is bundled by wails into the binary.
Building Fermion should be simple. Just install Wails and run
wails build. Make sure you have wails in your $PATH.