You must have installed and running MongoDB database before you run the application.
git clone git@github.com:kulakowka/bugurt.git
cd bugurt
npm install
The script will drop database before you start 💣💣💣
Seed script help:
node seed -h
In order to fill your project with fake data, run this command in console.
node seed
Or with npm:
npm run seed
node seed -U 5 -S 10 -H 10 -C 100 -A 30
Or full arguments names:
node seed --users 5 --subscriptions 10 --hubs 10 --comments 100 --articles 30
The generator will give you a user with administrative privileges.
Username: admin
Password: pass
In order to start application in development
mode, run this command in console.
npm start
Now, open in your browser http://localhost:3000
In order to start application in production
mode, run this command in console.
PORT=3000 NODE_ENV=production node ./bin/www --harmony
Or start with pm2:
$ pm2 start ecosystem.json --env production
More info about pm2:
- Robomongo - Shell-centric cross-platform MongoDB management tool