aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-07-31 21:22:34 -0700
committerAdam Soltys <[email protected]>2014-07-31 21:22:34 -0700
commit91da53cb29966298074e63f89b60e8401444781d (patch)
treeb9438238ed73d7cd6051467e7642466a986af9ea
parentc10f68e9e30b56c0bbdd84c13130146422cbdfc4 (diff)
downloadcoinos-server-91da53cb29966298074e63f89b60e8401444781d.tar.gz
coinos-server-91da53cb29966298074e63f89b60e8401444781d.zip
Clean up unused files
-rw-r--r--database.json.sample9
-rw-r--r--migrations/20131110050923-add-users.js15
-rw-r--r--migrations/20131110070704-add-merchants.js18
-rw-r--r--migrations/20131110070755-add-addresses.js14
-rw-r--r--migrations/20131110070850-add-orders.js23
-rw-r--r--migrations/20131110070913-add-settlements.js21
-rw-r--r--migrations/20131110233123-add-exchanges.js14
-rw-r--r--migrations/20131110233243-add-settlers.js18
-rw-r--r--migrations/20131110234112-add-exchanges_settlers.js14
-rw-r--r--migrations/20131110235240-add-methods.js13
-rw-r--r--migrations/20131110235504-add-methods_settlers.js13
-rw-r--r--migrations/20131114144958-add-merchants_settlers.js15
-rw-r--r--package.json2
-rw-r--r--peerdb.json1
-rw-r--r--sequelize.js10
-rw-r--r--socket_test.js64
16 files changed, 0 insertions, 264 deletions
diff --git a/database.json.sample b/database.json.sample
deleted file mode 100644
index 688560dd..00000000
--- a/database.json.sample
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "dev": {
- "driver": "pg",
- "user": "you",
- "password": "password",
- "host": "localhost",
- "database": "pos"
- }
-}
diff --git a/migrations/20131110050923-add-users.js b/migrations/20131110050923-add-users.js
deleted file mode 100644
index f22dabc2..00000000
--- a/migrations/20131110050923-add-users.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('users', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- username: { type: 'string' },
- password: { type: 'string' },
- last_login: { type: 'datetime' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('users', callback);
-};
diff --git a/migrations/20131110070704-add-merchants.js b/migrations/20131110070704-add-merchants.js
deleted file mode 100644
index 15d0515c..00000000
--- a/migrations/20131110070704-add-merchants.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var dbm = require('db-migrate');
-var async = require('async');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- async.series([db.createTable.bind(db, 'merchants', {
- user_id: { type: 'int', primaryKey: true },
- formula: { type: 'string' },
- limit: { type: 'decimal' }
- }),
- db.runSql.bind(db, 'ALTER TABLE merchants ALTER COLUMN "limit" type decimal(10,2);')
- ], callback);
-
-};
-
-exports.down = function(db, callback) {
- db.dropTable('merchants', callback);
-};
diff --git a/migrations/20131110070755-add-addresses.js b/migrations/20131110070755-add-addresses.js
deleted file mode 100644
index 4415d327..00000000
--- a/migrations/20131110070755-add-addresses.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('addresses', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- merchant_id: { type: 'int' },
- address: { type: 'string' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('addresses', callback);
-};
diff --git a/migrations/20131110070850-add-orders.js b/migrations/20131110070850-add-orders.js
deleted file mode 100644
index e6f94246..00000000
--- a/migrations/20131110070850-add-orders.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var dbm = require('db-migrate');
-var async = require('async');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- async.series([
- db.createTable.bind(db, 'orders', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- merchant_id: { type: 'int' },
- amount: { type: 'decimal' },
- rate: { type: 'decimal' },
- status: { type: 'int' },
- creation_time: { type: 'datetime' },
- expiration_time: { type: 'datetime' }
- }),
- db.runSql.bind(db, 'ALTER TABLE orders ALTER COLUMN amount type decimal(10,2);'),
- db.runSql.bind(db, 'ALTER TABLE orders ALTER COLUMN rate type decimal(10,2);')
- ], callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('orders', callback);
-};
diff --git a/migrations/20131110070913-add-settlements.js b/migrations/20131110070913-add-settlements.js
deleted file mode 100644
index c66ee863..00000000
--- a/migrations/20131110070913-add-settlements.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var dbm = require('db-migrate');
-var async = require('async');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- async.series([
- db.createTable.bind(db, 'settlements', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- settler_id: { type: 'int' },
- merchant_id: { type: 'int' },
- amount: { type: 'decimal' },
- date: { type: 'datetime' },
- method: { type: 'string' }
- }),
- db.runSql.bind(db, 'ALTER TABLE settlements ALTER COLUMN amount type decimal(10,2);')
- ], callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('settlements', callback);
-};
diff --git a/migrations/20131110233123-add-exchanges.js b/migrations/20131110233123-add-exchanges.js
deleted file mode 100644
index a7e824c3..00000000
--- a/migrations/20131110233123-add-exchanges.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('exchanges', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- name: { type: 'string' },
- url: { type: 'string' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('exchanges', callback);
-};
diff --git a/migrations/20131110233243-add-settlers.js b/migrations/20131110233243-add-settlers.js
deleted file mode 100644
index 97575bce..00000000
--- a/migrations/20131110233243-add-settlers.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var dbm = require('db-migrate');
-var async = require('async');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- async.series([
- db.createTable.bind(db, 'settlers', {
- user_id: { type: 'int', primaryKey: true },
- formula: { type: 'string' },
- reserve: { type: 'decimal' }
- }),
- db.runSql.bind(db, 'ALTER TABLE settlers ALTER COLUMN reserve type decimal(10,2);')
- ], callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('settlers', callback);
-};
diff --git a/migrations/20131110234112-add-exchanges_settlers.js b/migrations/20131110234112-add-exchanges_settlers.js
deleted file mode 100644
index 31ec74b0..00000000
--- a/migrations/20131110234112-add-exchanges_settlers.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('exchanges_settlers', {
- user_id: { type: 'int' },
- exchange_id: { type: 'int' },
- api_key: { type: 'string' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('exchanges_settlers');
-};
diff --git a/migrations/20131110235240-add-methods.js b/migrations/20131110235240-add-methods.js
deleted file mode 100644
index 80289812..00000000
--- a/migrations/20131110235240-add-methods.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('methods', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- name: { type: 'string' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('methods');
-};
diff --git a/migrations/20131110235504-add-methods_settlers.js b/migrations/20131110235504-add-methods_settlers.js
deleted file mode 100644
index 409b80e3..00000000
--- a/migrations/20131110235504-add-methods_settlers.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('methods_settlers', {
- method_id: { type: 'int' },
- settler_id: { type: 'int' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('methods_settlers', callback);
-};
diff --git a/migrations/20131114144958-add-merchants_settlers.js b/migrations/20131114144958-add-merchants_settlers.js
deleted file mode 100644
index 28e8b136..00000000
--- a/migrations/20131114144958-add-merchants_settlers.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('merchants_settlers', {
- merchant_id: { type: 'int' },
- settler_id: { type: 'int' },
- schedule: { type: 'int' },
- method_id: { type: 'int' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('merchants_settlers', callback);
-};
diff --git a/package.json b/package.json
index 212b9be5..d7704c6b 100644
--- a/package.json
+++ b/package.json
@@ -17,9 +17,7 @@
"express": "4.6.1",
"express-session": "^1.6.5",
"hogan-express": "0.5.2",
- "hogan.js": "3.0.2",
"less": "1.7.3",
- "mmm": "0.2.2",
"passport": "0.2.0",
"passport-local": "1.0.0",
"redis": "0.11.0"
diff --git a/peerdb.json b/peerdb.json
deleted file mode 100644
index dc9528c2..00000000
--- a/peerdb.json
+++ /dev/null
@@ -1 +0,0 @@
-[{"ipv4":"127.0.0.1","port":"8333"}] \ No newline at end of file
diff --git a/sequelize.js b/sequelize.js
deleted file mode 100644
index e14d543d..00000000
--- a/sequelize.js
+++ /dev/null
@@ -1,10 +0,0 @@
-(function() {
- var Sequelize;
-
- Sequelize = require('sequelize');
-
- module.exports = new Sequelize('pos', 'adam', 'MPJzfq97', {
- dialect: 'postgres'
- });
-
-}).call(this);
diff --git a/socket_test.js b/socket_test.js
deleted file mode 100644
index a029c016..00000000
--- a/socket_test.js
+++ /dev/null
@@ -1,64 +0,0 @@
-(function() {
- var socket, transaction;
-
- transaction = {
- "hash": {},
- "version": 1,
- "lock_time": 0,
- "ins": [
- {
- "s": {},
- "q": 4294967295,
- "o": {}
- }
- ],
- "outs": [
- {
- "v": {},
- "s": {}
- }, {
- "v": {},
- "s": {}
- }
- ],
- "_buffer": {},
- "txid": "8500a0893a2d83a17819673884ade21bbef07d8c92bfe51682e45873cc2d3720",
- "vin": [
- {
- "n": 0,
- "txid": "1549415465c84fb519ffb92339ef80461427502c90d5d3ac5d01f27d824feabd",
- "vout": 1
- }
- ],
- "vout": [
- {
- "valueSat": 10000,
- "scriptPubKey": {
- "addresses": ["1VAnbtCAnYccECnjaMCPnWwt81EHCVgNr"]
- },
- "n": 0
- }, {
- "valueSat": 3966838180,
- "scriptPubKey": {
- "addresses": ["1Ao8Swc6vSosrjednQkNZeXEXVu1ZcxYZE"]
- },
- "n": 1
- }
- ],
- "time": 1405573125
- };
-
- $('body').append(transaction.vout[0].valueSat);
-
- socket = io('ws://insight.bitpay.com');
-
- socket.on('connect', function() {
- $('body').append('connected');
- return this.emit('subscribe', '1VAnbtCAnYccECnjaMCPnWwt81EHCVgNr');
- });
-
- socket.on('1VAnbtCAnYccECnjaMCPnWwt81EHCVgNr', function(data) {
- return $('body').append(JSON.stringify(data));
- });
-
-}).call(this);