Introduce sequelize migrations to create and migrate database tables and removed database scripts. See http://sequelizejs.com/docs/latest/migrations

Created seeds to initialize database with dummy tasks.
Introduce config module to handle configurations per environment. See https://github.com/lorenwest/node-config
Updated README.md to reflect changes.
This commit is contained in:
DC*
2014-08-08 00:15:44 -03:00
parent 2cef41ffb7
commit 7312c1b8bb
13 changed files with 84 additions and 109 deletions
+2 -2
View File
@@ -6,9 +6,9 @@ An open-source [Workflowy](http://workflowy.com) clone.
##Installation
* Copy over `sample.config.js` to `config.js`, and fill up the DB credentials.
* Create a new database and import `schema/hackflowy.sql`.
* Edit `config/development.json` to your needs
* `npm install`
* Run migrations and initialize the database: `sequelize-cli -m --config config/database.json` and `node db/seed/initial_tasks.js`
* `node server.js`
##Controls