-
Notifications
You must be signed in to change notification settings - Fork 0
Developing MiddGuard
Dana Silver edited this page Jun 11, 2016
·
2 revisions
This guide describes how to develop MiddGuard itself, not a MiddGuard-based investigation.
Install Node.js using n or nvm.
$ node --version
6.2.0Clone the repository from GitHub.
$ git clone https://github.com/ProfBlack/middguard.gitInstall MiddGuard's dependencies. The postinstall hook will install the
Bower dependencies.
$ npm installRun the database migrations.
$ ./bin/middguard migrate --knexfile examples/simple/knexfile.jsMake some changes and start a server with one of the example projects.
$ node examples/simpleAlternatively, install nodemon with npm install -g nodemon and start the
server with nodemon examples/simple. nodemon watches for changes and
automatically restarts the server.