dev environment and readme for it 🤖

This commit is contained in:
brucewar
2016-12-12 15:08:55 +08:00
parent 0f9517a2f6
commit 2d8e00f58b
3 changed files with 27 additions and 3 deletions

21
src/web_console/README.md Normal file
View File

@@ -0,0 +1,21 @@
# dev environment
* install mysql
* init sql
refer to file `data/db/irext_private_20161204.sql`
* install redis
[Windows](https://github.com/MSOpenTech/redis/releases)
[Linux](https://redis.io/)
* `npm install`
* init log directory
```bash
npm run log
```
* start dev server
```bash
npm run dev
```
Open [http://localhost:6001](http://localhost:6001)

View File

@@ -35,7 +35,7 @@ exports.setupEnvironment = function () {
MYSQL_DB_PASSWORD = "root"; MYSQL_DB_PASSWORD = "root";
FILE_TEMP_PATH = "D:/rc_extension"; FILE_TEMP_PATH = "D:/rc_extension";
PYTHON_PATH = "C:/Python27/python.exe"; PYTHON_PATH = "C:/Python27/python.exe";
LISTEN_PORT = "80"; LISTEN_PORT = "6001";
SERVER_ADDRESS = "localhost"; SERVER_ADDRESS = "localhost";
REDIS_HOST = "localhost"; REDIS_HOST = "localhost";
REDIS_PORT = "6379"; REDIS_PORT = "6379";

View File

@@ -3,9 +3,9 @@
"version": "0.0.1", "version": "0.0.1",
"description": "console of irext", "description": "console of irext",
"scripts": { "scripts": {
"dev": "supervisor -w . -i ./web irext_console.js",
"server": "bash bin/script_run.sh", "server": "bash bin/script_run.sh",
"log": "bash bin/script_init.sh", "log": "bash bin/script_init.sh"
"test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -31,5 +31,8 @@
"redis": "^2.6.3", "redis": "^2.6.3",
"request": "^2.79.0", "request": "^2.79.0",
"ua-parser-js": "^0.7.12" "ua-parser-js": "^0.7.12"
},
"devDependencies": {
"supervisor": "^0.12.0"
} }
} }