||2 years ago|
|frontend||2 years ago|
|.gitignore||2 years ago|
|.jshint||2 years ago|
|LICENSE||2 years ago|
|README.md||2 years ago|
|debug.sh||2 years ago|
|fileTree.go||2 years ago|
|go.mod||2 years ago|
|go.sum||2 years ago|
|main.go||2 years ago|
|project.json||2 years ago|
What is Fermion?
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.