The brand new daigouge.com
git clone git@github.com:gregwym/daigouge.git
npm install
If you want to modify and make
the components yourself, you need to install component globally.
npm install -g component
make
export MONGO_DB_URL='mongodb://<user>:<password>@dharma.mongohq.com:10000/your-db'
export TOP_APP_KEY='12345678'
export TOP_APP_SECRET='134567890abcdefghijklmnopqrstuvwxyz'
NODE_PATH=server node app.js
Or use nodemon to automatically restart the app upon server file changes:
NODE_PATH=server nodemon -w server -w *.js app.js
If you are working on the front-end, add -b
option to build the components upon each request:
NODE_PATH=server node app.js -b
# or
NODE_PATH=server nodemon -w server -w *.js app.js -b
git add remote heroku <heroku_git>
git push heroku master
heroku config:set MONGO_DB_URL='mongodb://<user>:<password>@dharma.mongohq.com:10000/your-db'
heroku config:set TOP_APP_KEY='12345678'
heroku config:set TOP_APP_SECRET='134567890abcdefghijklmnopqrstuvwxyz'