- Create a
datadirectory to store your data (you only need to do this once). - Start a mongo process with
mongod --dbpath=./data(we'll need to manage this in the server in the long run)
To fetch packages first:
npm install (dev dependencies)
bower install (client side dependencies)
To build:
gulp build
To clean built files:
gulp clean
This will empty the public folder, with the exception of bower_components.
gulp or
gulp watch
This will build, serve and watch your files for changes.
git push heroku master
Server
- Only open DB connection once on startup, and shut it down when the server exits