/team-time-zone-backend

Authentication server for Team Time Zone

Primary LanguageJavaScriptMIT LicenseMIT

Team Time Zone backend

This is a simple Express.js app which provides the authentication API for Team Time Zone. The only endpoint is /api/tokens, which implements the second stage of the Slack OAuth2 Web Authentication Flow.

Installation

Clone the repository, then run npm install.

Deployment

You'll need to configure your Slack application keys to use this yourself. Store these on your server in a .env file, using the format given in .env.example. You can also use this file to change the port that Express listens on.

The Ember app expects the token endpoint at /api/tokens on the same domain it is served from, so you will probably need to set up a proxy to do that. How you do so depends on your web server.

To-do List

  • Add integration tests with Nock
  • More documentation on deployment
  • Better error handling