API server for retrieving information about box critters that is normaly hard to retrive and other useful information and tools.
Install Node js (>=7.x) for your operating system Install nodemon for auto rebuilding (optional)
npm install -g nodemon
Build dependencies
npm install
NODE_ENV=development/production
PORT=3000
DISCORD_WEBHOOK=https://discordapp.com/api/webhooks/1234/abc123abc123abc123abc123
GH_APP_ID=1234
GH_APP_PK=ab1.123abc
WS_ORIGIN=bcmc.ga
WS_OAUTH_CLIENT_ID=abc123abc123abc123abc123
WS_OAUTH_CLIENT_SECRET=abc123abc123abc123abc123abc123abc123abc123
WS_REDIRECT_URL=https://api.bcmc.ga/callback
SUBMIT_TOKEN=???
SUBMIT_WEBHOOK=???
DB_URL=dbURL
DB_USER=username
DB_PASSWORD=password
Without nodemon
:
npm start
With nodemon
:
nodemon
- tn-webserver [github:tumblenet/tn-webserver]
- http
- express [express/express]
- bc-admin-login [boxcritters/bc-admin-login]
- moment [moment/moment]
- request
- jsdom
- puppertier
- absolutlify
- imageDataUri
- octokit [octokit/rest.js]
- bodyParser
- Edit sites with sites.json
- Source code is in src
Any major chages discuss in discord or open an issue. Make sure to use the Issue and Pull request templates if I make them.
More information in LICENSE.md.