Giter Site home page Giter Site logo

crypti's Introduction

Crypti coin

Version 0.2

Install

First run:

npm install

Dependencies

  • sqlite3
  • grunt-cli

Install sqlite3 (Ubuntu/Debian)

apt-get install sqlite3

Install sqltie3 (Fedora/CentOS)

yum install sqlite

Install grunt-cli with global flag

npm install grunt-cli -g

Build

Before start application static html interface stored in public folder should be built.

cd public
bower install
grunt

Test

To run tests use standard npm test method:

npm test

or

test/test.sh

Crypti uses mocha so it possible to run test manually from cli:

mocha test/test.js
mocha test/transaction/index.js

Own tests

Main test file is test/test.sh is used for separate test suites and to run tests with settings. Each test should return exit code on failure:

# Bash test
./run-some-test.sh || exit 1;
# JS test file
$NODE test-file.js || exit 1;

Note. Use $NODE variable instead of node to use npm-defined node.js version.

To add custom mocha test add test file into test dir and then require it in test.js file in the appropriate place:

// test.js
require('./helpers/transaction.js');
require('./ui/login.js');

Note to use semantic names to avoid mess of files. Try to name it similarly to testing module or functionality name.

Start

Run:

crypti -p [port] -a [address] -c [config-path]

crypti's People

Contributors

borispovod avatar freeart avatar rumkin avatar bo-miller avatar

Watchers

Tommy Chang avatar  avatar

Forkers

chen4w

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.