Skip to content

Commit 19a792b

Browse files
committed
v0.9.0
See `CHANGELOG.md`.
2 parents 8391097 + bc07938 commit 19a792b

File tree

13 files changed

+139
-51
lines changed

13 files changed

+139
-51
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.sass-cache/
2+
coverage/
3+
node_modules/

.openshift/action_hooks/pre_build

Lines changed: 0 additions & 9 deletions
This file was deleted.

.openshift/markers/use_npm

Whitespace-only changes.

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).
88

99

1010

11+
## [0.9.0][0.9.0] - 2017-02-14
12+
13+
Added:
14+
15+
* Support settings
16+
17+
Changed:
18+
19+
* Dockerize application
20+
* Drop OpenShift support code
21+
* Update dependencies
22+
23+
1124
## [0.8.0][0.8.0] - 2016-11-19
1225

1326
Added:
@@ -114,4 +127,5 @@ This is the very first version.
114127
[0.6.0]:https://github.com/forfuturellc/mmtc-ke/releases/tag/v0.6.0
115128
[0.7.0]:https://github.com/forfuturellc/mmtc-ke/releases/tag/v0.7.0
116129
[0.8.0]:https://github.com/forfuturellc/mmtc-ke/releases/tag/v0.8.0
117-
[Unreleased]: https://github.com/forfuturellc/mmtc-ke/compare/v0.8.0...develop
130+
[0.9.0]:https://github.com/forfuturellc/mmtc-ke/releases/tag/v0.9.0
131+
[Unreleased]: https://github.com/forfuturellc/mmtc-ke/compare/v0.9.0...develop

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:alpine
2+
3+
ARG NODE_ENV
4+
WORKDIR /opt/app/
5+
EXPOSE 8080
6+
CMD ["npm", "start"]
7+
8+
ADD package.json /tmp/
9+
RUN cd /tmp/ && npm install
10+
RUN cp -a /tmp/node_modules/ /opt/app/
11+
12+
ADD . /opt/app/

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ function run(options, done) {
110110

111111
debug('starting server');
112112
app.listen(options.port, options.host, function() {
113-
logger.info('server listening');
114-
debug('server started at http://%s:%s', options.host, options.port);
113+
logger.info('server listening on http://%s:%s', options.host, options.port);
114+
debug('server listening on http://%s:%s', options.host, options.port);
115115
if (done) return done();
116116
});
117117
}

bower.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"font-awesome": "^4.6.3",
2020
"jquery": "^3.1.0",
2121
"bootstrap": "^3.3.7",
22-
"animate.css": "^3.5.2"
22+
"animate.css": "^3.5.2",
23+
"bootstrap-switch": "^3.3.2",
24+
"store-js": "^1.3.20"
2325
},
2426
"resolutions": {
2527
"jquery": "1.9.1 - 3"

config/default.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const config = {};
1313

1414
// server configuration
1515
config.server = {};
16-
config.server.port = process.env.OPENSHIFT_NODEJS_PORT || 8090;
17-
config.server.ip = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1';
16+
config.server.port = process.env.NODEJS_PORT || 8080;
17+
config.server.ip = process.env.NODEJS_IP || '0.0.0.0';
1818

1919

2020
// site configuration
@@ -23,11 +23,11 @@ config.site.title = 'Mobile Money Transaction Cost in Kenya';
2323
config.site.title_short = 'mmtc | ke';
2424
config.site.email = 'we@forfuture.co.ke';
2525
config.site.description = 'An easy way to calculate cost of mobile money transcations in Kenya';
26-
config.site.url = 'mmtc.forfuture.co.ke';
26+
config.site.url = 'mmtc.forfuture.tech';
2727
config.site.baseurl = '';
2828
config.site.author = {};
2929
config.site.author.name = 'Forfuture LLC';
30-
config.site.author.url = 'http://forfuture.co.ke';
30+
config.site.author.url = 'https://forfuture.tech';
3131

3232

3333
// export the configurations

docs/api.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ This API is useful for developers who:
1010

1111
## Introduction:
1212

13-
The **Base URLs** for the API are `http://mmtc.forfuture.co.ke/api`
14-
(Insecure but more permanent)
15-
and `https://mmtcke-forfutureco.rhcloud.com/api`
16-
(Secure but less permanent).
13+
The **Base URL** for the API is `https://mmtc.forfuture.tech/api`.
1714

1815
API Characteristics:
1916

package.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,56 @@
11
{
2-
"name": "mmtc-ke",
3-
"version": "0.8.0",
2+
"name": "mmtc",
3+
"version": "0.9.0",
4+
"description": "Calculate Mobile Money Transaction Cost",
45
"private": true,
6+
"repository": {
7+
"type": "git",
8+
"url": "git://github.com/forfuturellc/mmtc.git"
9+
},
10+
"author": {
11+
"name": "GochoMugo",
12+
"email": "mugo@forfuture.co.ke",
13+
"url": "http://www.gmugo.in"
14+
},
15+
"engines": {
16+
"node": ">=6"
17+
},
518
"scripts": {
619
"build": "grunt build",
7-
"postinstall": "HOME=${BOWER_HOME:-${HOME}} bower install",
20+
"publish": "npm run build && docker build --tag forfuture/mmtc --build-arg \"NODE_ENV=production\" .",
821
"start": "forever app.js",
922
"start-dev": "DEBUG=mmtc-ke:* nodemon app.js",
1023
"test": "grunt test",
1124
"test-coverage": "istanbul cover _mocha --report lcovonly -- -R spec test/test.*.js"
1225
},
1326
"dependencies": {
14-
"ajv": "^4.9.0",
15-
"body-parser": "^1.15.2",
16-
"bower": "^1.8.0",
27+
"ajv": "^4.11.3",
28+
"body-parser": "^1.16.1",
1729
"common-errors": "^1.0.0",
18-
"config": "^1.24.0",
19-
"debug": "^2.3.2",
20-
"express": "^4.14.0",
30+
"config": "^1.25.1",
31+
"debug": "^2.6.1",
32+
"express": "^4.14.1",
2133
"forever": "^0.15.3",
22-
"lodash": "^4.17.0",
34+
"lodash": "^4.17.4",
2335
"nunjucks": "^3.0.0",
24-
"showdown": "^1.5.0",
25-
"winston": "^2.3.0"
26-
},
27-
"repository": {
28-
"type": "git",
29-
"url": "git://github.com/forfuturellc/mmtc-ke.git"
30-
},
31-
"author": {
32-
"name": "GochoMugo",
33-
"email": "mugo@forfuture.co.ke",
34-
"url": "http://www.gmugo.in"
35-
},
36-
"engines": {
37-
"node": ">=6"
36+
"showdown": "^1.6.4",
37+
"winston": "^2.3.1"
3838
},
3939
"devDependencies": {
40-
"babel-preset-es2015": "^6.18.0",
40+
"babel-preset-es2015": "^6.22.0",
4141
"babelify": "^7.3.0",
42-
"coveralls": "^2.11.15",
42+
"bower": "^1.8.0",
43+
"coveralls": "^2.11.16",
4344
"elbow": "^1.0.0",
4445
"grunt": "^1.0.1",
4546
"grunt-browserify": "^5.0.0",
4647
"grunt-cli": "^1.2.0",
4748
"grunt-eslint": "^19.0.0",
4849
"grunt-mocha-test": "^0.13.2",
49-
"grunt-sass": "^1.2.1",
50+
"grunt-sass": "^2.0.0",
5051
"istanbul": "^0.4.5",
5152
"load-grunt-tasks": "^3.5.2",
52-
"mocha": "^3.1.2",
53+
"mocha": "^3.2.0",
5354
"mocha-lcov-reporter": "^1.2.0",
5455
"nodemon": "^1.11.0",
5556
"uglifyify": "^3.0.4"

0 commit comments

Comments
 (0)