Skip to content

blockchainofthings/Catenis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catenis

Catenis is an integration layer to the Bitcoin blockchain that allows for rapid blockchain-based application development.

Development environment

Catenis is developed using Meteor, a JavaScript/Node.js framework for rapid web/mobile application development.

The IDE used for development is WebStorm from JetBrains.

The WebStorm project is set up in a way that the meteor application is contained in the /meteor_app directory.

Increasing the development DB oplog size

Follow the steps bellow to increase the size of the oplog collection of Mongo DB database used in the meteor development environment.

  1. Start the Catenis meteor application.

  2. Issue the following command from the /meteor_app directory:

meteor mongo
  1. Then, from the mongo shell, issue the following commands:
use local
db.adminCommand({replSetResizeOplog: 1, size: 990})

Note: this only needs to be done once, after the application environment database is reset.

Building the application

To build the application, execute the following command from the /meteor_app directory:

meteor npm run build

A tar ball containing the packaged meteor application is written to the /build directory.

Alternatively, the application can be built for the development environment. To do this, execute the following command also from the /meteor_app directory:

meteor npm run build_dev

In this case, the tar ball containing the packaged meteor application is written to the /build/dev environment.

Deploying the application to the sandbox environment

After building the application, execute the following command from the /build directory:

scp ../build/Catenis-<ver>.tar.gz ctn-sandbox-1:~/Catenis_build/

Note: replace <ver> with the proper version number.

License

This software is released under the MIT License. Feel free to fork, and modify!

Copyright © 2017-2023, Blockchain of Things Inc.