<commit_before>![](https://raw.githubusercontent.com/flowchain/flowchain.github.io/master/images/logo-text%40128.png)

Private ledger that supports streaming and real-time data flow.

# Introduction

Flowchain is a private blockchain system for the Internet of Things, and it is a device server application for full scale hardware which is from MCU to mainstream servers.

Flowchain leverages the emerging technologies of blockchain, peer-to-peer, web of things, IoT and open IoT cloud.

## Testing

To start a flowchain node:

```
git clone https://github.com/flowchain/flowchain-core.git
cd flowchain-core
npm install
node index.js
```

The server will start at ```localhost:8000``` by default. To start another flowchain node at port ```8001``` and join an existing network:

```
export PORT=8001
node node1.js
```

After ```index.js``` has been joined, its _successor_ will become ```node1.js```. To fix the default join node, please open ```node1.js``` and modify the ```join``` property:

```
server.start({
    onstart: onstart,
	onmessage: onmessage,
	join: {
		address: 'localhost',
		port: 8000
	}
});
```

## Flowchain Modules

* wotcity.io: [https://github.com/wotcity/wotcity-wot-framework](https://github.com/wotcity/wotcity-wot-framework)
* flowchain: [https://github.com/flowchain/flowchain](https://github.com/flowchain/flowchain)
* DevifyPlatform: [https://github.com/DevifyPlatform/devify-server](https://github.com/DevifyPlatform/devify-server)
* node-p2p-chord: [https://github.com/jollen/node-p2p-chord](https://github.com/jollen/node-p2p-chord)
* wwRPC: [https://github.com/jollen/wwRPC](https://github.com/jollen/wwRPC)

## History

current:
 * Add PicoDB support

v0.5: 2016.12.28
 * Support transaction verify<commit_msg>release: pre-release for coming public alpha<commit_after>![](https://flowchain.io/fb0/images/logo-text%40128.png)

Flowchain-ledger is a distributed ledger for the Internet of Things (IoT), and designed the software architecture from the ground up.

# Introduction

Flowchain created a new software architecture for the IoT blockchain to provide a distributed ledger programming framework for peer-to-peer IoT networks and real-time data transactions, and ```flowchain-ledger``` is the distributed ledger subsystem of the Flowchain framework.

This is a pre-release for coming public alpha, and it's not currently ready to use.

## How to use

Start a flowchain boot node first:

```
$ git clone https://github.com/flowchain/flowchain-ledger.git
$ cd flowchain-core
$ npm install
$ export HOST=192.168.1.1
$ export PORT=8000
$ node boot.js
```

The server runs at ```192.168.1.1:8000```, and please modify the IP address and port number to fit your environment.

```
export PORT=8001
node node1.js
```

Then, please open ```node.js``` and modify the ```join``` property:

```
server.start({
    onstart: onstart,
	onmessage: onmessage,
	join: {
		address: '192.168.1.1',
		port: 8000
	}
});
```


## History

alpha-3: 2017.03.07
 * Add PicoDB support
 * Support MediaTek LinkIt Smart 7688
 * Pre-release for public alpha

v0.5: 2016.12.28
 * Support transaction verify
{'fraction_non_alphanumeric': 0.12644415917843388, 'fraction_numerical': 0.034338896020539154, 'mean_word_length': 4.55614973262032, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7330620', 'n_tokens_mistral': 1066, 'n_tokens_neox': 972, 'n_words': 312}