(Almost) Fully functional Toro and Friends: Onsen Town backend recreation (LINE, NeptuneSDK and BeXide APIs)
Contents: Requirements • Setup
- Clone the repository
- Run these commands in the repository's folder:
$ dotnet restore
$ dotnet ef database update- Edit
Types/GameInfo.csto use the right IP and port- If you don't want to use a defined port (for example if you're using a domain that's proxied to the running server) you can set
Portto 80 or 433. - Make sure to change
IsHTTPSaccordingly. Using cleartext HTTP on Android requires further setup
- If you don't want to use a defined port (for example if you're using a domain that's proxied to the running server) you can set
- Simply run this command:
$ dotnet run- The server is now running!
To edit the running port, you'll have to edit Properties/launchSettings.json.
- Run this command:
$ dotnet publishYou will get an executable called Saturn (alongside a bunch of other files) inside of bin/Release/net10.0/publish.
-
If you're running the server on the same machine as where you built it, you can simply run
./Saturninside the folder. -
If you're running the server on a separate machine, you'll have to copy the entire
publishfolder and all its contents in order for it to run correctly.
To edit the running port (which by default is 5000), you'll have to run Saturn like this:
$ ./Saturn --urls http://0.0.0.0:15154/
# ... where 15154 is the port it will run on