-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·48 lines (38 loc) · 1.03 KB
/
Makefile
File metadata and controls
executable file
·48 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
setup: package.json
sudo add-apt-repository ppa:chris-lea/node.js -y
sudo apt-get update
sudo apt-get install nodejs -y
npm config set registry http://registry.npmjs.org/
sudo npm install
sudo port install mongodb || sudo apt-get install mongodb
NODE_ENV=development
mongod &
mongorestore -d github-connect ghconnect_db/github-connect
killall mongod
setup-rpm: package.json
sudo yum install -y nodejs npm
npm config set registry http://registry.npmjs.org/
sudo npm install
sudo yum install -y mongodb-server
NODE_ENV=development
sudo service mongod start &
mongorestore -d github-connect ghconnect_db/github-connect
killall mongod
test:
@for t in $$(ls tests); do \
./node_modules/.bin/mocha -R spec tests/$$t; \
done
run:
@mongod &
@echo "Server running at localhost:3000"
@node app.js
db-export:
rm -rf ghconnect_db
mongod &
mongodump -d github-connect -o ghconnect_db
db-import:
mongod &
mongorestore -d github-connect ghconnect_db/github-connect
db-drop:
mongod &
mongo github-connect --eval "db.dropDatabase();"