Merge pull request #76 from colkito/feature/change-mystery-to-insight

rename project to Insight -- great movement!
This commit is contained in:
Gustavo Maximiliano Cortez 2014-01-17 07:04:04 -08:00
commit b6abe7f338
27 changed files with 72 additions and 80 deletions

View File

@ -1,4 +1,4 @@
# Mystery
# Insight
Project description.
@ -23,14 +23,14 @@ $ npm install -g bower
* UI Bootstrap - Defined as bower module in the [bower.json](bower.json) file.
## Quick Install
To install Mystery on local, you have to fork the main repository to your
To install Insight on local, you have to fork the main repository to your
computer:
https://github.com/bitpay/mystery
https://github.com/bitpay/insight
Then clone it wherever you want:
$ git clone git@github.com:<your_username>/mystery.git
$ git clone git@github.com:<your_username>/insight.git
$ cd myster
@ -63,9 +63,9 @@ $ npm install -g bower
$ git clone git@github.com:gasteve/node-bufferput.git
Create symbolic link of node-bufferput in your mystery folder:
Create symbolic link of node-bufferput in your insight folder:
$ cd <your_path_to>/mystery/node_modules
$ cd <your_path_to>/insight/node_modules
$ ln -s <path_to>/node-bufferput bufferput
Get bitcore from github repository:
@ -78,10 +78,10 @@ $ npm install -g bower
$ npm install
Then create a symbolic link from this to your mystery repository. We need to
Then create a symbolic link from this to your insight repository. We need to
use bitcore from github, not with npm for now:
$ cd mystery/node_modules
$ cd insight/node_modules
$ rm -R bitcore
@ -89,7 +89,7 @@ $ npm install -g bower
## Syncing old blockchain data
Run sync from mystery repository (to save old blocks and transactions in MongoDB):
Run sync from insight repository (to save old blocks and transactions in MongoDB):
$ utils/sync.js
@ -181,7 +181,7 @@ If you want to use a external bitcoind server set BITCOIND_HOST / BITCOIND_PORT
### Environment Variables Settings
There are three environments provided by default, __development__, __test__, and __production__. Each of these environments has the following configuration options:
* __db__ - This is the name of the MongoDB database to use, and is set by default to __mystery-dev__ for the development environment.
* __db__ - This is the name of the MongoDB database to use, and is set by default to __insight-dev__ for the development environment.
* __app.name__ - This is the name of your app or website, and can be different for each environment. You can tell which environment you are running by looking at the TITLE attribute that your app generates.
To run with a different environment, just specify NODE_ENV as you call grunt:
@ -194,13 +194,13 @@ If you are using node instead of grunt, it is very similar:
### Development enviroment
To run mystery locally for development:
To run insight locally for development:
$ NODE_ENV=development grunt
## Github
[Mystery](https://github.com/bitpay/mystery)
[Insight](https://github.com/bitpay/insight)
## License
(The MIT License)

View File

@ -10,4 +10,3 @@ block content
#error-stack-trace
pre
code!= error

View File

@ -6,7 +6,7 @@ head
title= appName+' - '+title
meta(http-equiv='Content-type', content='text/html;charset=UTF-8')
meta(name="keywords", content="node.js, express, mongoose, mongodb, angularjs")
meta(name="description", content="Mystery")
meta(name="description", content="Insight")
link(rel='shortcut icon', href='/img/icons/favicon.ico', type='image/x-icon')

View File

@ -2,4 +2,3 @@ extends layouts/default
block content
section.container(data-ng-view)

View File

@ -1,5 +1,5 @@
{
"name": "Mystery",
"name": "Insight",
"version": "0.0.1",
"dependencies": {
"angular": "latest",

View File

@ -1,14 +1,14 @@
'use strict';
module.exports = {
db: "mongodb://localhost/mystery-dev",
db: 'mongodb://localhost/insight-dev',
app: {
name: "Mystery - Development"
name: 'Insight - Development'
},
bitcoind: {
protocol: process.env.BITCOIND_PROTO || 'http',
user: process.env.BITCOIND_USER || 'mystery',
pass: process.env.BITCOIND_PASS || 'real_mystery',
user: process.env.BITCOIND_USER || 'user',
pass: process.env.BITCOIND_PASS || 'pass',
host: process.env.BITCOIND_HOST || '127.0.0.1',
port: process.env.BITCOIND_PORT || '18332',
disableAgent: true,
@ -16,4 +16,4 @@ module.exports = {
network: 'testnet',
disableP2pSync: false,
disableHistoricSync: false,
}
};

View File

@ -1,8 +1,8 @@
'use strict';
module.exports = {
db: "mongodb://localhost/mystery",
db: 'mongodb://localhost/insight',
app: {
name: "Mystery - Production"
name: 'Insight - Production'
}
}
};

10
config/env/test.js vendored
View File

@ -1,18 +1,18 @@
'use strict';
module.exports = {
db: "mongodb://localhost/mystery-test",
db: 'mongodb://localhost/insight-test',
app: {
name: "Mystery - Test"
name: 'Insight - Test'
},
port: '3301',
bitcoind: {
protocol: process.env.BITCOIND_PROTO || 'http',
user: process.env.BITCOIND_USER || 'mystery',
pass: process.env.BITCOIND_PASS || 'real_mystery',
user: process.env.BITCOIND_USER || 'user',
pass: process.env.BITCOIND_PASS || 'pass',
host: process.env.BITCOIND_HOST || '127.0.0.1',
port: process.env.BITCOIND_PORT || '18332',
disableAgent: true,
},
network: 'testnet',
}
};

View File

@ -1,5 +1,5 @@
rpcuser=mystery
rpcpassword=real_mystery
rpcuser=user
rpcpassword=pass
server=1
txindex=1
@ -9,5 +9,3 @@ rpcallowip='192.168.1.*'
rpcport=18332
testnet=3

View File

@ -1,12 +1,8 @@
rpcuser=mystery
rpcpassword=real_mystery
rpcuser=user
rpcpassword=pass
server=1
txindex=1
# Allow connections outsite localhost?
rpcallowip=192.168.1.*
rpcallowip='192.168.1.*'

View File

@ -1,12 +1,12 @@
{
"name": "mystery",
"name": "insight",
"version": "0.0.1",
"private": true,
"author": {
"name": "Ryan X Charles",
"email": "ryan@bitpay.com"
},
"repository": "git://github.com/bitpay/mystery.git",
"repository": "git://github.com/bitpay/insight.git",
"contributors": [
{
"name": "Matias Alejo Garcia",
@ -30,12 +30,12 @@
}
],
"bugs": {
"url": "https://github.com/bitpay/mystery/issues"
"url": "https://github.com/bitpay/insight/issues"
},
"homepage": "https://github.com/bitpay/mystery",
"homepage": "https://github.com/bitpay/insight",
"license": "MIT",
"keywords": [
"mystery",
"insight",
"secret",
"enigma",
"riddle",

View File

@ -1,26 +1,26 @@
'use strict';
angular.module('mystery',
angular.module('insight',
['ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ui.bootstrap',
'ui.route',
'mystery.system',
'mystery.socket',
'mystery.blocks',
'mystery.transactions',
'insight.system',
'insight.socket',
'insight.blocks',
'insight.transactions',
'monospaced.qrcode',
'mystery.address',
'mystery.search',
'mystery.status'
'insight.address',
'insight.search',
'insight.status'
]);
angular.module('mystery.system', []);
angular.module('mystery.socket', []);
angular.module('mystery.blocks', []);
angular.module('mystery.transactions', []);
angular.module('mystery.address', []);
angular.module('mystery.search', []);
angular.module('mystery.status', []);
angular.module('insight.system', []);
angular.module('insight.socket', []);
angular.module('insight.blocks', []);
angular.module('insight.transactions', []);
angular.module('insight.address', []);
angular.module('insight.search', []);
angular.module('insight.status', []);

View File

@ -1,7 +1,7 @@
'use strict';
//Setting up route
angular.module('mystery').config(['$routeProvider',
angular.module('insight').config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/block/:blockHash', {
@ -32,7 +32,7 @@ angular.module('mystery').config(['$routeProvider',
]);
//Setting HTML5 Location Mode
angular.module('mystery').config(['$locationProvider',
angular.module('insight').config(['$locationProvider',
function($locationProvider) {
$locationProvider.hashPrefix('!');
}

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.address').controller('AddressController', ['$scope', '$routeParams', '$location', 'Global', 'Address', function ($scope, $routeParams, $location, Global, Address) {
angular.module('insight.address').controller('AddressController', ['$scope', '$routeParams', '$location', 'Global', 'Address', function ($scope, $routeParams, $location, Global, Address) {
$scope.global = Global;
$scope.findOne = function() {

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.blocks').controller('BlocksController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Blocks', function ($scope, $routeParams, $location, Global, Block, Blocks) {
angular.module('insight.blocks').controller('BlocksController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Blocks', function ($scope, $routeParams, $location, Global, Block, Blocks) {
$scope.global = Global;
$scope.list = function() {

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.system').controller('HeaderController', ['$scope', 'Global', function ($scope, Global) {
angular.module('insight.system').controller('HeaderController', ['$scope', 'Global', function ($scope, Global) {
$scope.global = Global;
$scope.menu = [

View File

@ -2,7 +2,7 @@
var TRANSACTION_DISPLAYED = 5;
var BLOCKS_DISPLAYED = 5;
angular.module('mystery.system').controller('IndexController', ['$scope', 'Global', 'socket', 'Blocks', 'Transactions', function($scope, Global, socket, Blocks, Transactions) {
angular.module('insight.system').controller('IndexController', ['$scope', 'Global', 'socket', 'Blocks', 'Transactions', function($scope, Global, socket, Blocks, Transactions) {
$scope.global = Global;
socket.on('tx', function(tx) {

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.search').controller('SearchController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Transaction', 'Address', function ($scope, $routeParams, $location, Global, Block, Transaction, Address) {
angular.module('insight.search').controller('SearchController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Transaction', 'Address', function ($scope, $routeParams, $location, Global, Block, Transaction, Address) {
$scope.global = Global;
$scope.search = function() {

View File

@ -1,8 +1,8 @@
'use strict';
angular.module('mystery.status').controller('StatusController', ['$scope', '$routeParams', '$location', 'Global', 'Status', function ($scope, $routeParams, $location, Global, Status) {
angular.module('insight.status').controller('StatusController', ['$scope', '$routeParams', '$location', 'Global', 'Status', function ($scope, $routeParams, $location, Global, Status) {
$scope.global = Global;
$scope.getData = function(q) {
Status.get({
q: q

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.transactions').controller('transactionsController', ['$scope', '$routeParams', '$location', 'Global', 'Transaction', 'TransactionsByBlock', 'TransactionsByAddress', function ($scope, $routeParams, $location, Global, Transaction, TransactionsByBlock, TransactionsByAddress) {
angular.module('insight.transactions').controller('transactionsController', ['$scope', '$routeParams', '$location', 'Global', 'Transaction', 'TransactionsByBlock', 'TransactionsByAddress', function ($scope, $routeParams, $location, Global, Transaction, TransactionsByBlock, TransactionsByAddress) {
$scope.global = Global;
$scope.findOne = function() {

View File

@ -5,5 +5,5 @@ angular.element(document).ready(function() {
if (window.location.hash === '#_=_') window.location.hash = '#!';
//Then init the app
angular.bootstrap(document, ['mystery']);
angular.bootstrap(document, ['insight']);
});

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.address').factory('Address', ['$resource', function($resource) {
angular.module('insight.address').factory('Address', ['$resource', function($resource) {
return $resource('/api/addr/:addrStr', {
addrStr: '@addStr'
}, {

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.blocks').factory('Block', ['$resource', function($resource) {
angular.module('insight.blocks').factory('Block', ['$resource', function($resource) {
return $resource('/api/block/:blockHash', {
blockHash: '@blockHash'
}, {
@ -20,6 +20,6 @@ angular.module('mystery.blocks').factory('Block', ['$resource', function($resour
});
}]);
angular.module('mystery.blocks').factory('Blocks', ['$resource', function($resource) {
angular.module('insight.blocks').factory('Blocks', ['$resource', function($resource) {
return $resource('/api/blocks');
}]);

View File

@ -1,7 +1,7 @@
'use strict';
//Global service for global variables
angular.module('mystery.system').factory('Global', [
angular.module('insight.system').factory('Global', [
function() {
var _this = this;
_this._data = {

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.socket').factory('socket', ['$rootScope', function($rootScope) {
angular.module('insight.socket').factory('socket', ['$rootScope', function($rootScope) {
var socket = io.connect();
return {
on: function(eventName, callback) {

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.status').factory('Status', ['$resource', function($resource) {
angular.module('insight.status').factory('Status', ['$resource', function($resource) {
return $resource('/api/status', {
q: '@q'
});

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('mystery.transactions').factory('Transaction', ['$resource', function($resource) {
angular.module('insight.transactions').factory('Transaction', ['$resource', function($resource) {
return $resource('/api/tx/:txId', {
txId: '@txId'
}, {
@ -20,18 +20,18 @@ angular.module('mystery.transactions').factory('Transaction', ['$resource', func
});
}]);
angular.module('mystery.transactions').factory('TransactionsByBlock', ['$resource', function($resource) {
angular.module('insight.transactions').factory('TransactionsByBlock', ['$resource', function($resource) {
return $resource('/api/txs', {
block: '@block'
});
}]);
angular.module('mystery.transactions').factory('TransactionsByAddress', ['$resource', function($resource) {
angular.module('insight.transactions').factory('TransactionsByAddress', ['$resource', function($resource) {
return $resource('/api/txs', {
address: '@address'
});
}]);
angular.module('mystery.transactions').factory('Transactions', ['$resource', function($resource) {
angular.module('insight.transactions').factory('Transactions', ['$resource', function($resource) {
return $resource('/api/txs');
}]);