Society website
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
models
public
routes
src/Society-Documentation
templates
updates
.editorconfig
.eslintrc
.gitignore
.jshintrc
LICENSE
Procfile
README.md
gulpfile.js
keystone.js
package.json
package.json.old

README.md

javascript.org.nz

Development

This is built using KeystoneJS.

On first checkout you will need to init the git submodule for the Society-Documentation folder in /external. This can be initialised with the git command git submodule update --init --recursive.

To get Keystone running, you at least need a MongoDB instance running, and you will need to run npm install in the project folder to get any dependancies. The development server can then be initiated with node keystone.

Configuration

In addition to the services configuration options, the following optional environment variables are used:

MAINTENANCE_ENABLED

If this is 'true', the site is put into maintenance mode, with only the maintenance placeholder page accessible. Administrators are still able to access the site normally.

MAINTENANCE_MSG

The message to be shown on the maintenance page.

Services

The sites uses some external services. These are setup to use dummy configuration values by default. To use them, you need to set their config options either as environment variables or in a .env file in the root of the repo.

Cloudinary

Cloudinary is used for image hosting an manipulation.

CLOUDINARY_URL=cloudinary://user:key@domain

Mandrill

Mandrill is used for sending email.

MANDRILL_API_KEY=key
MANDRILL_USERNAME=user