Xcoin is a collaborative currency system for coin creation and exchange.
From a global perspective Coinsence is basically based on Xcoin Module since it's the only module that offers accounting utilities where all the magic happens.
Spaces within this module may have many accounts with different types :
- One
DEFAULTaccount - One
ISSUEaccount - Many
STANDARDaccounts - Many
TASKaccounts - Many
INVESTORaccounts
Although Users can have only one single DEFAULT account .
This module provides all sorts of coins manipulation :
- Coins issuing
- Coins transfer
- Coins exchange
Besides it comes with other features such as :
-
Crowdfunding : Funding your project by raising targeted coin from a large number of users in return of your own coin.
-
Marketplace : An open space where a market of products or services is held, and where payments are done through coins.
Two ways are possible :
-
External Installation (recommended for development purpose) :
Clone the module outside your Humhub root directory for example in a folder called
modules:$ cd modules $ git clone https://github.com/Coinsence/humhub-modules-xcoin.gitConfigure
Autoloadpath by adding this small code block in thehumhub_root_direcotry/protected/config/common.phpfile :return [ 'params' => [ 'moduleAutoloadPaths' => ['/path/to/modules'], ], ] -
Internal Installation (recommended for direct usage purpose) :
Just clone the module directly under
humhub_root_direcotry/protected/humhub/modules
=> Either ways you need to enable the module through through Browse online tab in the Administration menu under modules section.
Codeception framework is used for testing, you can check some of the implemented tests in tests folder.
-
To simply run tests :
$ humhub_root_directory/protected/vendor/bin/codecept run -
To run specific type of tests (
acceptance,unitorfunctional) :$ humhub_root_directory/protected/vendor/bin/codecept run unit -
To extract
xmlorhtmloutput :$ humhub_root_directory/protected/vendor/bin/codecept run unit --coverage-xml --coverage-html