Skip to content

Instantly share code, notes, and snippets.

@JogoShugh
Last active August 29, 2015 14:05
Show Gist options
  • Save JogoShugh/061b76461bb02f2683be to your computer and use it in GitHub Desktop.
Save JogoShugh/061b76461bb02f2683be to your computer and use it in GitHub Desktop.

To run as a service on a Windows machine, do the following:

Assuming you have Git installed:

  • Open a Git Bash prompt.
  • Navigate to a folder where you would like to install the Requestor.
  • Type git clone https://github.com/versionone/VersionOne.Client.Requestor.git
  • Type cd VersionOne.Client.Requestor to change into the newly cloned repository directory.
  • Follow the steps in Configure for VersionOne Projects for editing the config.js and fields.js files to your needs.
  • Modify the package.json file such that the scripts property looks like this (simply prefixing node to the "start" sub-property):
  "scripts": {
    "start": "node server.js",
    "install-windows-service": "winser -i -a",
    "uninstall-windows-service": "winser -r -a"
  },
  • Type npm install winser to install the WinSer node package.
  • Finally, type npm run-script install-windows-service to install the Requestor as a Windows server.
  • Open a web browser and you should now be able to access the Requestor at http://localhost:5000/index.html!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment