A INF219 project at University of Bergen
- Java version 8 or 9
- GoLang
To develop the application, you need to install Java with Gradle. You also need Golang with the packet gobot, which can be installed by:
$ go get -d -u gobot.io/x/gobot/...
To Run the application in developer mode, you can either start the main method for Game.java, or gradle run in console.
If you want to build the application, you can use gradle build.
If a the Go-application is not running, the program will start the Go-application and close it when itself is closing.
To run the Go-application in developer mode, you cd to .../GoGoLand/src/main/go/, and use
go build .go.exeIf you want to build the Go-application, you only do step 1. If the Go-application is running when you start the Java-application, the Java-application will recognise the Go-application and use it. As long as the Go-application is running on port 9001. If you want to use the webserver you have to build the Angular application first.
We use angular to show the webpages on the webserver. To develop and see changes you have to install Angular version 6.
Then run the command ng serve in the folder .../GoGoLand/src/main/angular. To build and deploy, you use ``` ng build --aot
The game will be available to download when the beta-version is finnished. It will be possible to download the server as a separate application, but also included in the game.