# 2 - Run MONDAT

Discussion:

  • normally this is deployed separately
  • Can be deployed as a static website (e.g. S3)
  • Must be controlled access.

# 1. Install MONDAT

In the terminal, run these commands from the /workspace directory.

cd /workspace
mkdir -p MONDAT
git clone https://github.com/tooltwist/datp-mondat.git MONDAT-1
mv MONDAT-1/* MONDAT-1/.[a-z]* MONDAT 
rmdir MONDAT-1
cd MONDAT
1
2
3
4
5
6

# 2. Adjust the configuration

Edit MONDAT/protected-config/websiteConfig.js and change port 4000 to 33370, by commenting out and uncommenting the appropriate sections.

# 3. Run MONDAT

Copy COURSE_FILES/2.2-mondat/dev-mondat into your util-vsc directory. You can then start MONDAT either using the script, or by selecting the MONDAT menu option below where you start MASTER. It might take a while to fully start, and you will see the message someting like this.

i  Listening on: http://172.21.0.4:33380/

The next time it will start faster.

# 4. Using MONDAT

Open your browser at http://localhost:33380 (opens new window).

# 5. Start a transaction

  • In MONDAT click on Testing menu item on the left.

  • Select the null test. This is a test transaction that does nothing. It simply pauses for a short period of time then returns a simply reply.

  • Click on Run test.

  • You should see the result on the "null" transaction, with a status of "success", and output of afield="xyz".

{
  "metadata": {
    "owner": "acme",
    "txId": "tx-9b896a4839c824ccfab336c43e8919e84c6058ba",
    "externalId": null,
    "transactionType": "null",
    "status": "success",   <===
    "completionTime": 1683735282362,
    "lastUpdated": 1683735282362,
    "notifiedTime": 1683735282365
  },
  "progressReport": null,
  "data": {
    "afield": "xyz"   <===
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Deployed on Github Pages.
Last updated: 2023-05-17, 15:37:23 UTC