How to Run a Local API Server

The Microtick API server is the only communication most Microtick applications will need to contact in order to make use of the system. The API server runs a websocket that can be reached from a browser or from any websocket library. There is a Microtick npm repository that is used for the client side of this API protocol written in Javascript.

In a third window, separate from the running node and the running REST server, run the following commands:

$ git clone
$ cd mtapi/server
$ cp config-example.json config.json

Now unless you have mongodb running you'll need to turn off the use_database flag by setting it to false in config.json. Finally, run the server:

$ yarn install
$ node server

Leave the API server running because it is used by market maker and browser to communicate with the blockchain.

Questions? The Microtick Telegram chat link is: