An API for accessing data about Agile Research Studios (ARS), specifically built for the Northwestern Design, Technology, and Research (DTR) program.
- Create a
.env
file as follows:NODE_ENV=development PORT=3000 DEBUG=true MONGODB_URI=mongodb://localhost/studio-api GOOGLE_SERVICE_ACCOUNT_EMAIL="<GOOGLE_SERVICE_ACCOUNT_EMAIL>" GOOGLE_PRIVATE_KEY="<GOOGLE_API_PRIVATE_KEY>" SLACK_SIGNING_SECRET="<SLACK_SIGNING_SECRET>" SLACK_BOT_TOKEN="<SLACK_BOT_TOKEN>" TZ=UTC
- Create your Google Service Account Credientials and deposit the credentials at the root of this directory as
google-credentials.json
. - Set up a Slack Bot using the
slack-manifest.json
in this repository.- Note: you will need to fill in the fields for
APPLICATION_NAME
BOT_USER_NAME
, andBOT_EVENT_URL
. - For development, use ngrok to tunnel into your localhost and provide your Slack application with the
BOT_EVENT_URL
. In production, use the URL or IP address to your server.
- Note: you will need to fill in the fields for
- Run
yarn
to download the necessary packages. - Install ngrok.
- Run
yarn run dev
to start the local Node.js application. - In a separate tab, start the MongoDB daemon using
mongod --dbpath=<PATH_TO_DB>
. - In another separate tab, start ngrok using
ngrok http <PORT_NUMBER>
.
For production, use the following environment variables:
NODE_ENV=production
PORT=8080
MONGODB_URI=<url of mongodb>
GOOGLE_SERVICE_ACCOUNT_EMAIL="<GOOGLE_SERVICE_ACCOUNT_EMAIL>"
GOOGLE_PRIVATE_KEY="<GOOGLE_API_PRIVATE_KEY>"
SLACK_SIGNING_SECRET="<SLACK_SIGNING_SECRET>"
SLACK_BOT_TOKEN="<SLACK_BOT_TOKEN>"
TZ=UTC
Check mark indicates API support for the data source.
- Venues
- People
- Events
- Sprint Logs
- Research Canvases
- Design Log
- Git Repo
- The Weekly
- IDP/LIP
- Self-Assessment
- Pair Research
Coming soon...