dev environment and readme for it 🤖
This commit is contained in:
21
src/web_console/README.md
Normal file
21
src/web_console/README.md
Normal 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)
|
||||
@@ -35,7 +35,7 @@ exports.setupEnvironment = function () {
|
||||
MYSQL_DB_PASSWORD = "root";
|
||||
FILE_TEMP_PATH = "D:/rc_extension";
|
||||
PYTHON_PATH = "C:/Python27/python.exe";
|
||||
LISTEN_PORT = "80";
|
||||
LISTEN_PORT = "6001";
|
||||
SERVER_ADDRESS = "localhost";
|
||||
REDIS_HOST = "localhost";
|
||||
REDIS_PORT = "6379";
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"version": "0.0.1",
|
||||
"description": "console of irext",
|
||||
"scripts": {
|
||||
"dev": "supervisor -w . -i ./web irext_console.js",
|
||||
"server": "bash bin/script_run.sh",
|
||||
"log": "bash bin/script_init.sh",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"log": "bash bin/script_init.sh"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -31,5 +31,8 @@
|
||||
"redis": "^2.6.3",
|
||||
"request": "^2.79.0",
|
||||
"ua-parser-js": "^0.7.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"supervisor": "^0.12.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user