Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evantahler/slack-team-locations
See you slack team on a map!
https://github.com/evantahler/slack-team-locations
actionherojs map nodejs react slack
Last synced: 23 days ago
JSON representation
See you slack team on a map!
- Host: GitHub
- URL: https://github.com/evantahler/slack-team-locations
- Owner: evantahler
- License: apache-2.0
- Created: 2019-04-07T02:56:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T04:17:59.000Z (over 5 years ago)
- Last Synced: 2024-05-01T23:25:24.373Z (6 months ago)
- Topics: actionherojs, map, nodejs, react, slack
- Language: JavaScript
- Homepage:
- Size: 4.59 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Slack Team Locations
I parse the slack access logs to make a map of your team member's locations so you can show them on a map!
![screenshot](https://raw.githubusercontent.com/evantahler/slack-team-locations/master/screenshot.png)
## Setups
```bash
yarn install
brew install heroku # or use Foreman, or just start both processes directly (see Procile)
cp .env-example .env # and then fill out .env
heroku local
```## Configuration
* Your slack team needs to be paid so that you can acess the `team.accessLogs` methods (https://api.slack.com/methods/team.accessLogs). This is what we use to get folk's IP addreses, and then determine locations.
* Make a new Slack integration and get your API key here https://api.slack.com/methods/team.accessLogs/test This is the test method for the team API, so you can be sure that your API key works. This key is set in your .env file or environment variables
* You need a google maps API key. Get one here https://developers.google.com/maps/documentation/javascript/get-api-key. This key is set in your .env file or environment variables
* create the mysql or postgres database defined in your .env file (ie: `mysql -e "CREATE DATABASE slack_locations_development"`)## Notes
* This project uses (and will download) the free maxmind geoip "geolite-2" database automatically.