README
express-react-sequlize MVC
A basic isomorphic JavaScript application with React, Express,and Sequelize
Installation
npm install
Running the app
DEBUG=expressiso ./bin/www
Building with webpack
npm run build:watch # Watch for changes and rebuild
npm run build # One-off build
Installation Database
And one of the following:
$ npm install --save pg pg-hstore
$ npm install --save mysql2
$ npm install --save sqlite3
$ npm install --save tedious // MSSQL
建立Model
$ npm rum sequlize init
原本 sequlize-cli 指令是
$ node_modules/.bin/sequelize init
但為了好寫,已將指令寫到package.json的script 裡面