Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.71 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.71 KB

ts2 Sim Server

GoDoc Join the chat at https://gitter.im/ts2/ts2-sim-server Build Status codecov

This is the home of the ts2 simulation server, the core of the ts2 simulator.

Unless you want to develop your own client and access the simulator through its API, you should go to https://github.com/ts2/ts2 to grab the all-in-one simulator which includes the simulation server.

Install

Binary

Download the binary for your platform from the Release Page. This is a single binary with no dependencies.

Source

You need to install the Go distribution (https://golang.org/dl/) for your platform first.

Then use the go tool:

go get github.com/ts2/ts2-sim-server

Starting the server

ts2-sim-server /path/to/simulation-file.json

The server is running and can be accessed at ws://localhost:22222/ws

Note that the server only accepts JSON simulation files. If you have a .ts2 file, you must unzip it first, extract the simulation.json file inside and start the server on it.

Web UI

The server ships with a minimal Web UI to interact with the webservice.

Start the server and head to http://localhost:22222.