Schedule Creator and Job finder for college students.
Configuration is now done via environment variables. In order to remain consistant between install types the courseshark executable loads in a file ~/.env_vars. This file is managed via the salt-master cerebro.
The variables looked for in the scripts are:
NODE_ENV
- Standard environment to run indevelopment|production|testing
PORT
- What port to run the HTTP service on ( should be 8080 )COURSESHARK_MODE
- specifies the mode to run inmain
- runs the main website. This is the default value if not setseat-watcher
- runs the seat-watcher jobadmin
- runs the admin site
COURSESHARK_DOMAIN
- Domain (without slashes) the current instance is bound toCOURSESHARK_ACCESS_LOG
- Location of access logCOURSESHARK_MONGODB_URI
- URI (with user/pass) of the mongoDB instance to connect to for data storageCOURSESHARK_REDIS_URI
- URI (host/port) of the REDIS instance to connection to for socket.ioCOURSESHARK_FB_APP_ID
- FB API app idCOURSESHARK_FB_APP_SECRET
- FB API app secretCOURSESHARK_FB_HOST
- URI of the host authenticatingCOURSESHARK_GOOGLE_APIKEY
- Google apiKeyCOURSESHARK_GOOGLE_CLIENT_ID
- Google Client IDCOURSESHARK_GOOGLE_CLIENT_SECRET
- Google Client SecretCOURSESHARK_GOOGLE_ISS
- Google ISS ( used for in-app payments )COURSESHARK_GOOGLE_SELLER_SECRET
- Google Seller Secret ( used or in-app payments )COURSESHARK_TWITTER_CONSUMER_KEY
- Twitter API consumer keyCOURSESHARK_TWITTER_CONSUMER_SECRET
- Twitter API secretCOURSESHARK_LINKEDIN_CONSUMER_KEY
- LinkedIn Consumer KeyCOURSESHARK_LINKEDIN_CONSUMER_SECRET
- LinkedIn Consumer SecretCOURSESHARK_LINKEDIN_OAUTH_TOKEN
- LinkedIn OAuth tokenCOURSESHARK_LINKEDIN_OAUTH_SECRET
- LinkedIn OAuth secretCOURSESHARK_TWILIO_SID
- Twilio Service IDCOURSESHARK_TWILIO_AUTH_TOKEN
- Twilio authorization tokenCOURSESHARK_TWILIO_NUMBER
- Twilio phone number SMS will be sent fromCOURSESHARK_MANDRILL_KEY
- Mandrill API keyCOURSESHARK_NOTIFICATION_EMAIL
- Email notifications will be sent fromCOURSESHARK_NOTIFICATION_PASSWORD
- Password for email that notifications will be sent fromCOURSESHARK_MIXPANEL_ACCESS_TOKEN
- Mixpanel API TokenCOURSESHARK_MIXPANEL_DEBUG
- Mixpanel Debug propertyCOURSESHARK_MIXPANEL_TEST
- Mixpanel Config Test propertyCOURSESHARK_SEARCH_CACHE_EXPIRE
- How long to cache search results in the Redis store
For default development and production values for the above variables contact james
- NEVER work in the main branch
- Always work in your own branch, or branches.
- Push your completed branch to the repo only if it needs to be reviewed by others
- When you are ready to commit your code into the main branch, submit a pull request that is well documented on the changes you made
- Your pull will be reviewed by the team, and mereged if/when it is good.
- Master branch is always working code
- Master could be launched live at any time