Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Aug 31, 2015
1 parent 771bec3 commit a197c7d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
27 changes: 19 additions & 8 deletions README.md
Expand Up @@ -20,7 +20,7 @@ Test on Node Version: ``0.12.7``

##Configure

Current Default Config:
Default Config:

```javascript
{
Expand All @@ -40,10 +40,13 @@ Current Default Config:
"coap": 5683,
"mqtt": 1883
},
"logging" :false
"logging" :true,
"secret": "keyboard cat"
}
```

###**Import** make sure change secret

encrypt: ["crypto", "bcrypt"]

modules: ["coap", "http", "mqtt", "websocket"]
Expand All @@ -52,7 +55,6 @@ Use ``bcrypt``, please install it:

npm install --save bcrypt


##Docker

``Require``: Docker
Expand All @@ -63,8 +65,8 @@ Use ``bcrypt``, please install it:

``必装``:

1. MongoDB
2. Sqlite 或者 MySQL
1. MongoDB -> NoSQL: 数据存储
2. Sqlite || MySQL || PostgreSQL || MariaDB || MSSQL -> SQL: 存储用户信息

然后:

Expand All @@ -87,7 +89,11 @@ Use ``bcrypt``, please install it:
npm install -g sequelize-cli
sequelize db:migrate

5.运行
5.Start Cron

npm jobs/cron.js

6.运行

npm start

Expand All @@ -96,7 +102,7 @@ Use ``bcrypt``, please install it:
``require``: Install

1. ``MongoDB``
2. ``Sqlite`` or ``MySQL``
2. Sqlite || MySQL || PostgreSQL || MariaDB || MSSQL -> SQL: save user info

Then.

Expand All @@ -112,7 +118,12 @@ Or Just Production only:

sequelize db:migrate

3.Run

3.Start Cron

npm jobs/cron.js

4.Run

npm start

Expand Down
2 changes: 1 addition & 1 deletion config/default.json
Expand Up @@ -15,6 +15,6 @@
"coap": 5683,
"mqtt": 1883
},
"logging": false,
"logging": true,
"secret": "keyboard cat"
}
1 change: 0 additions & 1 deletion server/index.js
Expand Up @@ -64,7 +64,6 @@ router.get('/logout', function (req, res) {
'use strict';
if (req.isAuthenticated()) {
req.logout();
//req.session.messages = req.i18n.__("Log out successfully");
req.session.messages = 'Log out successfully';
}
res.redirect('/');
Expand Down

0 comments on commit a197c7d

Please sign in to comment.