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).
- Clone the repo:
git clone [email protected]:sinfo/cannon-api.git
- Enter the directory:
cd cannon-api
- Install the dependencies:
npm install
ornpm i
- Set the environment variables used on
config.js
- Create the
keys
andcannon_upload
directories (if using the default config) - Generate the the PEM RSA keys:
openssl genrsa -out keys/token.key 1024
openssl rsa -in keys/token.key -pubout -out keys/token.pub
- 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.