Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Commit f2e9d1b

Browse files
committed
200th commit! 🎂🔥
1 parent 85d790d commit f2e9d1b

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ node index
2929

3030
On the first ```node index``` run, you need to run
3131
```bash
32-
node fabric-reset
32+
node default-settings
3333
```
3434
to create first admin account
35+
36+
## Saving data
37+
To save data (database and pictures), run:
38+
```bash
39+
node save
40+
```
41+
42+
After finish, it will create compressed folder (ZIP) in auto save directory (default ./autosave) named actual date
43+
44+
## Reseting to default settings
45+
This script must be ran on the first blog run to create admin account and more.
46+
```bash
47+
node default-settings
48+
```
49+
Before run, I recommending to make data copy with ```node save```

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
mongoData: {
3-
ip: '',
3+
ip: 'localhost',
44
port: 27017,
55
user: 'root',
66
password: 'toor',

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"start": "nodemon index",
88
"watch": "npm run build:dev && webpack-dev-server --progress --colors --hot --inline --port 8080 --history-api-fallback",
99
"build:dev": "rimraf build && webpack",
10-
"build:production": "rimraf build && cross-env NODE_ENV=production webpack --progress --define process.env.NODE_ENV=production",
11-
"save": "node save",
12-
"default-settings": "node default-settings"
10+
"build:production": "rimraf build && cross-env NODE_ENV=production webpack --progress --define process.env.NODE_ENV=production"
1311
},
1412
"keywords": [
1513
"rest-api",

0 commit comments

Comments
 (0)