Skip to content

Commit

Permalink
Merge pull request bitpay#76 from colkito/feature/change-mystery-to-i…
Browse files Browse the repository at this point in the history
…nsight

rename project to Insight -- great movement!
  • Loading branch information
cmgustavo committed Jan 17, 2014
2 parents 4503542 + 57ec70d commit b6abe7f
Show file tree
Hide file tree
Showing 27 changed files with 72 additions and 80 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mystery
# Insight

Project description.

Expand All @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -78,18 +78,18 @@ $ 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

$ ln -s <path-to-your-clone-repositoy>/bitcore

## 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

Expand Down Expand Up @@ -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:
Expand All @@ -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)
Expand Down
1 change: 0 additions & 1 deletion app/views/404.jade
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ block content
#error-stack-trace
pre
code!= error

2 changes: 1 addition & 1 deletion app/views/includes/head.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
1 change: 0 additions & 1 deletion app/views/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ extends layouts/default

block content
section.container(data-ng-view)

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Mystery",
"name": "Insight",
"version": "0.0.1",
"dependencies": {
"angular": "latest",
Expand Down
10 changes: 5 additions & 5 deletions config/env/development.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
'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,
},
network: 'testnet',
disableP2pSync: false,
disableHistoricSync: false,
}
};
6 changes: 3 additions & 3 deletions config/env/production.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

module.exports = {
db: "mongodb://localhost/mystery",
db: 'mongodb://localhost/insight',
app: {
name: "Mystery - Production"
name: 'Insight - Production'
}
}
};
10 changes: 5 additions & 5 deletions config/env/test.js
Original file line number Diff line number Diff line change
@@ -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',
}
};
6 changes: 2 additions & 4 deletions etc/bitcoind/bitcoin-testnet.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rpcuser=mystery
rpcpassword=real_mystery
rpcuser=user
rpcpassword=pass
server=1
txindex=1

Expand All @@ -9,5 +9,3 @@ rpcallowip='192.168.1.*'

rpcport=18332
testnet=3


8 changes: 2 additions & 6 deletions etc/bitcoind/bitcoin.conf
Original file line number Diff line number Diff line change
@@ -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.*'




10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
30 changes: 15 additions & 15 deletions public/js/app.js
Original file line number Diff line number Diff line change
@@ -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', []);
4 changes: 2 additions & 2 deletions public/js/config.js
Original file line number Diff line number Diff line change
@@ -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', {
Expand Down Expand Up @@ -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('!');
}
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/address.js
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/blocks.js
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/header.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/search.js
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions public/js/controllers/status.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/transactions.js
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion public/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
});
2 changes: 1 addition & 1 deletion public/js/services/address.js
Original file line number Diff line number Diff line change
@@ -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'
}, {
Expand Down
4 changes: 2 additions & 2 deletions public/js/services/blocks.js
Original file line number Diff line number Diff line change
@@ -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'
}, {
Expand All @@ -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');
}]);
2 changes: 1 addition & 1 deletion public/js/services/global.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion public/js/services/socket.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
Loading

0 comments on commit b6abe7f

Please sign in to comment.