Skip to content

sinfo/cannon-api

Repository files navigation

cannon-api

Build Status Dependency Status devDependency Status

The Cannon API is (like the name leads you to believe) an API being built at SINFO so that our attendees, sponsors and speakers may have the top notch experience they deserve.

Entirely based in hapi.js with love!

Built using MongoDB (which must be installed and running to run the API).

Installation:

  1. Clone the repo: git clone [email protected]:sinfo/cannon-api.git
  2. Enter the directory: cd cannon-api
  3. Install the dependencies: npm install or npm i
  4. Set the environment variables used on config.js
  5. Create the keys and cannon_upload directories (if using the default config)
  6. Generate the the PEM RSA keys:
openssl genrsa -out keys/token.key 1024
openssl rsa -in keys/token.key -pubout -out keys/token.pub
  1. Start the server: npm start

Note: If you've managed to break our awesome API you definitley deserve a cookie! So open a Issue/PR or drop us a line at [email protected] to collect that cookie of yours.