...
- Navigate to /zend_framework/public/server/
- Execute npm (node package manager) which will read the package.json file and install the listed dependencies.
- npm install
...
Configure auth.json
Old Method:
Create /zend_framework/public/server/auth.json with your username and password in the following format, substituting your actual credentials:
Code Block |
---|
{
"username": "jresig",
"password": "jQuery2006"
} |
New Method:
Edit /zend_framework/public/server/auth_yours.json and rename this file to auth_me.json or whatever you like:
Code Block |
---|
{ "what_do_I_do_with_this_file": "Rename this file to auth_me.json or whatever you like then reference it on the command line with the '-a' parameter", "keyFile": ".pem file containing your key", "certsFile": ".pem file containing your cert with password removed", "caFile": "certs/mitCA.pem" } |
Testing The Local Server
Old Method:
- Navigate to zend_framework/public/server
- Start the server via command ./bin/mitserv
New Method:
- Navigate to zend_framework/public/server
- Start the server via command node bin/mitserv.js -a auth_me.json
Possible Issues
- Issue:
- Seeing GET http://localhost:8080/rest/v1/user/auth 403 (Forbidden)
- With body content including: "SyntaxError: Unexpected token ILLEGAL"
- Fix: The Apache server needs to include the username
...