- Install Node.js and MongoDB.
- You may need to install bower and grunt globally with
npm install -g bower
andnpm install -g grunt-cli
. - To get ZERO running locally, you need a running instance of MongoDB.
Note: In case that you are new to MongoDB, it is quiet easy to setup your first instance.
After MongoDB installed, just make a directory as your DB path, such as mkdir ~/data/db/
and then run mongod --dbpath ~/data/db
.
- Clone the repo into a directory and
cd
into it. - Run
npm install
- Run
bower install
- Run
grunt build
- Run
node node_test_server/app.js
- Run
grunt serve
ZERO will be opened in your browser automaticly as localhost:9000
.
Note that grunt serve
command will also start a process to watch the changes applied to related files. When you change the source files, they will be re-compiled automaticly and the webpage will refresh itself (on modern browsers).