mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-11 11:12:38 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user