You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+24-2
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,30 @@ nodeblog
4
4
5
5
## About
6
6
[Obtvse] (https://github.com/natew/obtvse) is developed by [@natew](https://github.com/natew) with Ruby&Rails.
7
-
[@gorekee](https://github.com/gorekee) has already [started](https://github.com/gorekee/obtvse-node.js) to convert it to nodejs, and I
8
-
asked his permission to continue his work
7
+
I am trying to convert it to nodejs.
9
8
10
9
## Configuration
10
+
Configuration file is `config.json`. It looks as following:
11
+
12
+
{
13
+
"user": "mysql_username",
14
+
"password": "mysql_password",
15
+
"DB": "mysql_db_name",
16
+
"TABLE_POST": "posts",
17
+
"TABLE_PUBLISH": "publish",
18
+
"TABLE_COMMENT": "comment",
19
+
"PORT": "3000",
20
+
"env": "dev",
21
+
"postPerPage": 10,
22
+
"login": {
23
+
"user": "obtvse_admin_username",
24
+
"password": "obvtse_admin_password"
25
+
}
26
+
}
27
+
28
+
`user` & `password` are your database username & password. `DB` is the database that you will store your blog posts. Web site content
29
+
is stored in `TABLE_*`. `PORT` is the port your node server is running. `postPerPage` is modifiable as well. Finally set your admin login and password.
30
+
11
31
Set MySql database and login information into the config.json under user/password.
12
32
Set Admin module login information under login.user/login.password.
13
33
First run `npm install` for dependencies, then run `node app.js` in order to start the server.
@@ -16,3 +36,5 @@ First run `npm install` for dependencies, then run `node app.js` in order to sta
16
36

17
37

18
38

39
+
40
+
Note: Not working with the bew updates of Jade and Express!
0 commit comments