Commit 7e92010a8b9f61605f401c5c498ee277cfaa1158

Authored by Adhidarma Hadiwinoto
1 parent 49d364c559
Exists in master

some deps

Showing 2 changed files with 35 additions and 1 deletions Inline Diff

1 "use strict"; 1 "use strict";
2
3 var aaa = require('sate24/aaa.js');
4 var expresso = require('sate24-expresso');
5 var logger = require('sate24/logger.js').start();
6 var HttpServer = require('sate24/httpserver.js');
7 var partner = require('./partner-simplepay.js');
8
9 var fs = require('fs');
10 var ini = require('ini');
11 var config = ini.parse(fs.readFileSync(__dirname + '/config.ini', 'utf-8'));
12
13 process.chdir(__dirname);
14
15 var logDirectory = __dirname + '/logs';
16 fs.existsSync(logDirectory) || fs.mkdirSync(logDirectory);
17
18 var matrix = aaa.prepareMatrix();
19
20 var options = {
21 'aaa': aaa,
22 'logger': logger,
23 'config': config,
24 'matrix': matrix,
25 }
26
27 var httpServer = HttpServer.start(config, options);
28
29 partner.start(options);
30 aaa.start(config, partner, options);
31 expresso.start(options);
2 32
1 { 1 {
2 "name": "sate24-to-bnisyariah-prosesor", 2 "name": "sate24-to-bnisyariah-prosesor",
3 "version": "1.0.0", 3 "version": "1.0.0",
4 "description": "ST24 to BNI Syariah Prosesor", 4 "description": "ST24 to BNI Syariah Prosesor",
5 "main": "index.js", 5 "main": "index.js",
6 "scripts": { 6 "scripts": {
7 "test": "mocha" 7 "test": "mocha"
8 }, 8 },
9 "repository": { 9 "repository": {
10 "type": "git", 10 "type": "git",
11 "url": "git@gitlab.kodesumber.com:reload97/sate24-to-bnisyariah-prosesor.git" 11 "url": "git@gitlab.kodesumber.com:reload97/sate24-to-bnisyariah-prosesor.git"
12 }, 12 },
13 "keywords": [ 13 "keywords": [
14 "st24", 14 "st24",
15 "ppob", 15 "ppob",
16 "reload97", 16 "reload97",
17 "r97", 17 "r97",
18 "h2h" 18 "h2h"
19 ], 19 ],
20 "author": "Adhidarma Hadiwinoto <me@adhisimon.org>", 20 "author": "Adhidarma Hadiwinoto <me@adhisimon.org>",
21 "license": "ISC" 21 "license": "ISC",
22 "dependencies": {
23 "sate24": "git+http://gitlab.kodesumber.com/reload97/node-sate24.git",
24 "sate24-expresso": "git+http://gitlab.kodesumber.com/reload97/sate24-expresso.git"
25 }
22 } 26 }
23 27