Skip to content
James Williams edited this page Aug 4, 2014 · 3 revisions

Overview

There are 3 main components to JobQuery:

  • Back-end server application
  • Front-end client
  • Database

The client interacts with the back-end via an exposed REST api, and the server handles database operations. These can now be configured independently by setting specific environment attributes.

Note, there are two main ways the client app can be deployed:

  • Development deployment - uses appdev.js, and all libs etc are loaded individually. For this, run gulp dev.
  • Staging/Production deployment - uses app.js, which is uglified, concatenated, and minified along with libs and other resources. For this, run gulp staging or gulp prod

Configuration parameters

Here are the main environment variables you may be interested in. These are independently set for each Azure instance, and you'll need to set them if you'd like to change the defaults for your local environment.

Server

GLOBAL_URL - default: http://localhost:8000
DB_URL - default: mongodb://localhost/myApp
smtpUsername
smtpPassword
PORT - default: 9000
URL (base url) - default: http://localhost
ADMIN_SECRET
USER_SECRET

Client

SERVER_URL - dev default: http://localhost:9000, staging/production default: http://hrhqjobquery.azurewebsites.net

Clone this wiki locally