11Some comments
22=============
33
4- [ ![ Build Status] ( https://travis-ci.org/fiddur/some-comments.svg )] ( https://travis-ci.org/fiddur/some-comments )
5- [ ![ Coverage Status] ( https://coveralls.io/repos/fiddur/some-comments/badge.svg )] ( https://coveralls.io/r/fiddur/some-comments )
4+ [ ![ Build Status] ( https://travis-ci.org/fiddur/some-comments.svg?branch=master )] ( https://travis-ci.org/fiddur/some-comments )
5+ [ ![ Coverage Status] ( https://coveralls.io/repos/fiddur/some-comments/badge.svg?branch=master&service=github )] ( https://coveralls.io/r/fiddur/some-comments?branch=master )
66
7- Aims to become a free standing commenting system that you attach by including javascript. I need
8- this because Ghost has no commenting function and I don't want ads funded commenting, nor tie it to
9- one specific social platform.
7+ ** Some comments** is stand-alone commenting microservice that you could attach by including
8+ javascript.
9+
10+ This was initially constructed because Ghost has no built in commenting functionality and I don't
11+ want ads funded commenting, nor tie it to one specific social platform.
12+
13+ Commenters can authenticate via 3rd party authentication like openid, google, facebook etc, or
14+ comment anonymously.
1015
11- All the commenters have to authenticate via 3rd party authentication like openid, google, facebook
12- etc; currently anything that "passport" supports.
1316
1417
1518Features
@@ -53,7 +56,8 @@ And, add the css:
5356Install (server)
5457----------------
5558
56- This is tested on Node 0.10, 0.12, and v4.0.0, and io.js.
59+ ** Some comments** requires Node v4 or higher! I suggest using
60+ [ nvm] ( https://github.com/creationix/nvm ) .
5761
5862```
5963git clone https://github.com/fiddur/some-comments.git
@@ -171,7 +175,7 @@ Callback URI will be `http(s)://domain/auth/facebook/callback`.
171175
172176### Database
173177
174- Anything that [ node-orm2 ] ( https ://github.com/dresende/node-orm2 ) supports.
178+ Anything that [ Knex ] ( http ://knexjs.org/ ) supports.
175179
176180To use a backend, simply install it:
177181
@@ -181,17 +185,19 @@ npm install sqlite3
181185
182186…and use it in your config:
183187``` javascript
184- database: ' sqlite:///var/lib/some-comments.db'
188+ database: {
189+ client: ' sqlite3' ,
190+ connection: {
191+ filename: " /var/lib/some-comments.db"
192+ }
193+ }
185194```
186195
187196…and run the migrations:
188197```
189- DB_URL=sqlite:///var/lib/some-comments.db ./node_modules/.bin/ migrate up
198+ grunt migrate: up
190199```
191200
192- Whatever is in ` config.database ` will be passed on to
193- [ orm.connect] ( https://github.com/dresende/node-orm2/wiki/Connecting-to-Database ) .
194-
195201
196202### E-mail notifications
197203
@@ -218,9 +224,40 @@ could for example `npm install nodemailer-sendmail-transport` and in config put
218224require('nodemailer-sendmail-transport')(options)`.
219225
220226
227+ Contributing
228+ ------------
229+
230+ * Comment on issue to let others know you started implementing something. Discuss data & code
231+ design on the issue.
232+ * Use [ gitflow] ( https://github.com/nvie/gitflow ) branching model - make pull requests toward the
233+ ` develop ` branch.
234+ * Use jscs for code formatting.
235+ * Skip unnecessary semicolons.
236+ * Use ES6 ` const ` , ` => ` , prefer ` async/await ` before explicit promises.
237+ * Make sure new code is tested both with relevant unit tests and integration tests.
238+ * Make sure there are working migrations from older versions.
239+ * See [ TODO] ( TODO.md ) for refactorings waiting to happen…
240+
241+
221242Changelog
222243---------
223244
245+ ### 0.4.0
246+
247+ ** Upgrade from 0.3** :
248+
249+ 1 . Update config (` database ` format changed to [ Knex] ( http://knexjs.org/ ) )
250+ 2 . ` node migrate0.3.0-0.4.0.js `
251+
252+ * #19 : Edit/delete own comments.
253+ * Changing ORM again (using objection.js, but thinking about ditching that and only using knex).
254+ * Using Bluebird for promises.
255+ * ** Required node >= 4** - This is a microservice, does not need to be compatible with old
256+ interpreters!
257+
258+ Use with caution; I haven't tested the Dynamic OpenID Connect authentication in this version.
259+
260+
224261### 0.3.0
225262
226263** Upgrade from 0.2** : ` grunt migrate:up `
0 commit comments