Chapter 7. Preparing Your BTA
In the previous exercises, you set up everything you need in order to create a blockchain tethered AI. In this chapter, “Exercise: Installing and Launching Your BTA” details the last step of installation: setting up the frontend and backend of the BTA and configuring it so it is integrated with the blockchain, the model, and the bucket. Then, you will go on to “Exercise: Creating Users and Permissions”, where you will create your BTA’s users and permissions.
Exercise: Installing and Launching Your BTA
Your BTA has a backend and a frontend system. You have already set up the blockchain and the buckets, and configured the connections so your resources will all communicate once your BTA is up. The installation instructions for each development environment follow.
Installing the BTA Backend
To set up the backend of the BTA application (the BTA server), change directories to your project folder, then clone the bta-backend repository as follows:
$ git clone https://github.com/kilroyblockchain/bta-backend.git $ cd bta-backend
After you check the README.md file for any new installation notes, run the script to set up and run the backend of the BTA:
$ ./setupAndRunBTABackend.sh
The files in the bta-backend folder are primarily related to migrating the blockchain code to the MongoDB database. The backend env file is located here, as described in the following section.
Understanding Your BTA Backend’s env File
In /bta-backend you have a file called .env ...
Get Blockchain Tethered AI now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.