diff --git a/config/mysql.js b/config/mysql.js index b222818..b070906 100644 --- a/config/mysql.js +++ b/config/mysql.js @@ -11,7 +11,7 @@ if (process.env.NODE_ENV === 'dev') { module.exports = { username: 'root', - password: '123456', + password: '', database: 'cas', host: '127.0.0.1', port: '3306', diff --git a/package.json b/package.json index 0b885ab..e22e539 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,8 @@ "zxcvbn": "^4.2.0" }, "devDependencies": { + "antd": "^0.12.12", + "babel-core": "^6.6.5", "babel-loader": "^6.2.4", "backbone": "^1.3.1", "classnames": "^2.2.3", @@ -67,10 +69,13 @@ "jquery": "^2.2.1", "node-sass": "^3.4.2", "qrcode.react": "^0.6.0", + "react": "^0.14.7", + "react-dom": "^0.14.7", "react-hot-loader": "^1.3.0", "sass-loader": "^3.1.2", "style-loader": "^0.13.0", "underscore": "^1.8.3", + "webpack": "^1.12.14", "webpack-dev-server": "^1.14.1" } } diff --git a/scripts/init_table.js b/scripts/init_table.js index f3f69fc..54bd444 100644 --- a/scripts/init_table.js +++ b/scripts/init_table.js @@ -16,7 +16,7 @@ require('babel-polyfill'); const fs = require('fs'); const path = require('path'); const Sequelize = require('sequelize'); -const config = require('../config').database; +const config = require('../config').mysql; const db = {}; const sequelize = new Sequelize(config.database, config.username, config.password, config); const modeldir = `${__dirname}/../models`;