mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
b4d3eab02c
Add foreman configuration for Heroku: - To test production configuration execute NODE_ENV=production foreman start - Database connection configuration now handles "use_env_variable" which should be defined as a environment variable such as "DATABASE_URL" with a proper database URI connection string, ie: postgres://user:password@db.example.com:5432/database - Added package.json configuration to run migrations and db seed after `npm install` Update frontend models to match sequelize definition. Update views to work according to the changes above. Handling isCompleted and parentId apropiately for PostgreSQL databases
26 lines
676 B
JSON
26 lines
676 B
JSON
{
|
|
"name": "hackflowy",
|
|
"version": "0.0.1",
|
|
"description": "A simple WorkFlowy clone",
|
|
"dependencies": {
|
|
"express": "~3.1.0",
|
|
"path": "~0.4.9",
|
|
"pg": "~3.4.1",
|
|
"sequelize": "~1.7.9",
|
|
"socket.io": "~1.0.6",
|
|
"config": "~1.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"sqlite3": "~2.1.0"
|
|
},
|
|
"engines": {
|
|
"node": "0.10.x"
|
|
},
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"db:migrate": "./node_modules/sequelize/bin/sequelize -m --config config/database.json",
|
|
"db:seed": "node db/seed/initial_tasks.js",
|
|
"postinstall": "npm run db:migrate && npm run db:seed"
|
|
}
|
|
}
|