Skip to content

francetem/topscores

 
 

Repository files navigation

Resources

Build status

Build Status

Continuous deployment

Master changes are automatically grabbed by Heroku and deployed.

Documentation

Rest API documentation can be found at http:///swagger-ui.html

Settings

Accounts

Use token:account=pwd as an env variable to enable a new account

$ heroku config
$ heroku config:set token:account=pwd

Slack

The slack integration makes sure that the commands are issued by the slack application by checking the signature. Only teams with a configured token are allowed.

token:patxanga=<required for the patxanga slack team>
slack_secret=<application secret>

For development environments the signature validation can be bypassed by adding an environment flag

bypass_slack_secret=true

Create an application and set up the following URL for the command integration,

https://something-nice-34567.herokuapp.com/slack/command

Running Locally

Make sure you have Java and Maven installed. Also, install the Heroku CLI.

$ git clone https://github.com/heroku/kotlin-getting-started.git
$ cd kotlin-getting-started
$ mvn install
$ heroku local:start

Your app should now be running on localhost:5000.

If you're going to use a database, ensure you have a local .env file that reads something like this:

JDBC_DATABASE_URL=jdbc:postgresql://localhost:5432/java_database_name
token:patxanga=secret
bypass_slack_secret=true
slack_secret=notset

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

About

Top scores backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 91.2%
  • HTML 5.8%
  • JavaScript 2.7%
  • Other 0.3%