Skip to content

Commit

Permalink
v0.0.1 – Merge pull request #136 from ChronoBank/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Shevchenko authored May 25, 2017
2 parents e0afe1b + cb40e4f commit f7e9eab
Show file tree
Hide file tree
Showing 384 changed files with 11,108 additions and 8,196 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": [
"es2015",
"env",
"react"
],
"plugins": [
Expand Down
178 changes: 0 additions & 178 deletions .eslintrc

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
.tern-port
.DS_Store
node_modules/
orbit-db/
ChronoMint/
coverage/
.idea/
*.log
*.bac

/build
.truffle-solidity-loader
/coverage
yarn.lock
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dist: trusty
os: linux
group: stable
language: node_js
node_js: 6.9.2
node_js: 7.9.0

install:
- npm install
Expand All @@ -12,14 +12,17 @@ install:

script:
- testrpc > /dev/null &
- truffle test
- truffle migrate --reset
- truffle exec setup/*
- sleep 5 && npm run bridge > /dev/null &
- sleep 60 && npm run contracts
- npm test -- --coverage

after_script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

notifications:
slack: chrono-dev:a6jsr4kW5U4uxrGNOxygOWGF
email: false

cache:
directories:
- node_modules
- node_modules
42 changes: 20 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,46 @@

# ChronoMint [![Build Status](https://travis-ci.org/ChronoBank/ChronoMint.svg?branch=master)](https://travis-ci.org/ChronoBank/ChronoMint) [![Coverage Status](https://coveralls.io/repos/github/ChronoBank/ChronoMint/badge.svg)](https://coveralls.io/github/ChronoBank/ChronoMint) [![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
Control panel for ChronoBank and Labour-Offering Companies.
Control panel for ChronoBank

## Requirements
* NodeJS 6+
* Unix based OS (or just create proper symlinks instead of *contracts*, *test*, *migrations* and *src/contracts* in the root)
*NodeJS 7.9.0 required*

## Install
Clone repo and run in the root dir:
```bash
git submodule init
git submodule update
npm install
export PATH=$PATH:$(pwd)/node_modules/.bin
npm i
```

## Run
## Development
Start TestRPC in a separate terminal by doing:
```bash
testrpc
npm run testrpc
```

Then deploy contracts with:
Then in another separate terminal:
```bash
truffle migrate --reset
truffle exec setup/*
npm run bridge
```

Finally in another separate terminal run:
Wait for _Listening @..._ message and don't exit from this process!

After that deploy contracts with:
```bash
npm run contracts
```

And finally:
```bash
npm start
```

Now you able to access ChronoMint dApp through the [http://localhost:3000/](http://localhost:3000/)

## Test
#### Smart contracts
In the root dir run:
To open truffle console use:
```bash
truffle test
npm run tconsole
```

#### Application
In the root dir run:
## Test
```bash
npm test
```
To test separate specs just add your regex at the end.
To test separate specs just add your regex at the end of this command.
1 change: 0 additions & 1 deletion SmartContracts
Submodule SmartContracts deleted from bd0fb8
3 changes: 1 addition & 2 deletions config/babel.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ module.exports = {
cacheDirectory: true,
presets: [
'babel-preset-react',
'babel-preset-es2015',
'babel-preset-es2016',
'babel-preset-env',
'babel-preset-react-hmre',
'babel-preset-stage-0'
].map(require.resolve),
Expand Down
3 changes: 1 addition & 2 deletions config/babel.prod.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
presets: [
'babel-preset-es2015',
'babel-preset-es2016',
'babel-preset-env',
'babel-preset-react',
'babel-preset-stage-0'
].map(require.resolve),
Expand Down
1 change: 0 additions & 1 deletion config/flow/css.js.flow

This file was deleted.

2 changes: 0 additions & 2 deletions config/flow/file.js.flow

This file was deleted.

2 changes: 2 additions & 0 deletions config/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module.exports = {
}
Loading

0 comments on commit f7e9eab

Please sign in to comment.