File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,11 @@ $ GH_CLIENT_ID=myid GH_CLIENT_SECRET=mysecret npm start
26
26
For debugging all the things, run ` DEBUG=* npm start ` .
27
27
28
28
## Database
29
- Whenever you do the initial ` npm install ` a db called ` javascriptcom ` is created
30
- for you. In the event that you need to drop that database and recreate it, don't
31
- forget to either run ` npm install ` again or ` createdb javascriptcom `
29
+ Download and install [ MongoDB] ( https://www.mongodb.org/downloads )
32
30
33
- NPM will run new migrations whenever you ` npm start ` . In order for it to work,
34
- you'll need to set the ` DATABASE_URL ` ENV to pg://localhost:5432/javascriptcom.
35
- Migrations are already run for you after the initial ` npm install `
31
+ When you run ` npm start ` , mongod will be forked as a background process. No need
32
+ to create the database either. You're all set.
36
33
37
- To create new migrations see the node-pg-migraton
38
- [ documentation] ( https://github.com/theoephraim/node-pg-migrate ) .
39
-
40
- After setting your database up run ` gulp seeds ` to seed your database.
41
34
## Development
42
35
43
36
If you add any runtime dependencies, you must run ` npm shrinkwrap ` and
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"engines" : {},
6
6
"scripts" : {
7
+ "prestart" : " mongod --fork --logpath /dev/null" ,
7
8
"start" : " node ./bin/www" ,
9
+ "poststop" : " mongo admin --eval 'db.shutdownServer()' > /dev/null" ,
8
10
"postinstall" : " ./setup.sh" ,
9
11
"bower" : " node_modules/.bin/bower" ,
10
12
"gulp" : " node_modules/.bin/gulp"
You can’t perform that action at this time.
0 commit comments