andrecronje / saito

big-data application blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to Saito

Getting started

If you just downloaded Saito and want to get it running, please read our INSTALL file instead of this one. This README contains more general information that might be useful for developers getting started.

Compiling versus refreshing

We include two files in the /lib directory that are useful for development. The difference is that "compile" will wipe-out the database and reset your server "options" file. The "refresh" script simply updates the javascript file that is produced for browsers without deleting any information.

./compile  (to purge all blockchain data)
./refresh  (to preserve blockchain data)

For developers

Please see the INSTALL file for instructions on getting Saito running. Once the program is executing, you can connect to Saito through your browser:

http://localhost:12101

You can find the default start page for this webpage in our source code directory at the following location:

lib/saito/web/index.html

Most of the user-driven functionality is coded in optional modules that create web applications. Our blockchain explorer, for instance, is just a regular Saito application module. The file that controls which modules are loaded by any server is:

lib/modules/mods.js

The modules themselves are contained in sub-directories within that directory. A good way to get familiar with Saito (and find out how it works under the hood) is to look at these modules. Existing apps can act as simple tutorials on how to code your own applications.

While we're testing our network, we will be changing the public keys of both the Bank and Archive modules. To test these modules in development, make sure the keys are set to the following values:

  • Bank:
this.bank_publickey = "nR2ecdN7cW91nxVaDR4uXqW35GbAdGU5abzPJ9PkE8Mn"
this.bank_privatekey = app.wallet.returnPrivateKey();
  • Registry:
this.publickey = "nR2ecdN7cW91nxVaDR4uXqW35GbAdGU5abzPJ9PkE8Mn";
  • Archive:
this.publickey = this.app.wallet.returnPublicKey();`

If you have any questions or need help please get in touch:

About

big-data application blockchain

License:Other


Languages

Language:JavaScript 80.5%Language:C++ 5.9%Language:HTML 5.8%Language:Makefile 2.4%Language:CSS 1.8%Language:C 1.5%Language:Shell 1.3%Language:Python 0.4%Language:M4 0.4%