Giter Club home page Giter Club logo

albumlist's Introduction

Albumlist Slack App

This is a Slack app that scrapes and compiles lists of (bandcamp) albums that have been shared by a Slack team.

Deploy to Heroku

You can deploy this app yourself to Heroku to play with - though I would suggest forking this repository first and tweaking the environment variables listed under "env" in the app.json file.

Deploy

Running services locally

Using Docker Compose:

# create a local .env file to be consumed by the daemon and albumlist
$ cat .env
APP_SETTINGS=config.DevelopmentConfig 
BOT_URL_TEMPLATE="https://{team}.slack.com/services/hooks/slackbot?token={token}&channel=%23{channel}"
SLACK_TEAM=albumlistchat
DEFAULT_CHANNEL=chat
LIST_NAME=albumlist
SLACK_API_TOKEN="[TOKEN_FROM_SLACK]"
SCRAPE_CHANNEL_ID="[DEFAULT_SLACK_CHANNEL_ID_TO_SCRAPE]"

$ docker-compose up -d
$ docker exec albumlist python create_tables.py

Use Pyenv to manage installed Python versions:

$ curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
$ pyenv versions
* system
  2.7
  3.4.7
  3.5.4
  3.6.3

You can then set the default global Python version using:

$ pyenv global 3.6.3
$ pyenv versions
  system
  2.7
  3.4.7
  3.5.4
* 3.6.3 (set by /Users/User/.pyenv/version)

# if pip is missing:
$ easy_install pip

NB: install Python versions with:

$ pyenv install 3.6.3

Install dependencies to a new virtual environment using Pipenv:

$ pip install -U pipenv
$ pipenv install

NB: pipenv will try to use pyenv to install a missing version of Python specified in the Pipfile.

Run commands within the new virtual environment with:

pipenv run python create_tables.py
pipenv run python run.py

albumlist's People

Contributors

ogreman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.