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
andfields.js
files to your needs. - Modify the
package.json
file such that thescripts
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!