Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uesteibar/dev-mood-api
Analyze what folks tweet about programming languages and frameworks
https://github.com/uesteibar/dev-mood-api
elixir elixir-lang elixir-phoenix twitter twitter-sentiment-analysis twitter-streaming-api
Last synced: 6 days ago
JSON representation
Analyze what folks tweet about programming languages and frameworks
- Host: GitHub
- URL: https://github.com/uesteibar/dev-mood-api
- Owner: uesteibar
- Created: 2017-05-23T08:21:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-21T18:30:39.000Z (over 7 years ago)
- Last Synced: 2024-11-12T12:52:21.000Z (2 months ago)
- Topics: elixir, elixir-lang, elixir-phoenix, twitter, twitter-sentiment-analysis, twitter-streaming-api
- Language: Elixir
- Homepage:
- Size: 170 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TwitterDevMood
The aim of this project is to analyze what people tweets about programming languages and frameworks.
- [Running Locally](#running-locally)
- [Deploying](#deploying)
- [API](#api)
- [Contributing](#contributing)## Running locally:
* Install dependencies with `mix deps.get && yarn`
* Copy the env file with `cp .env.sample .env` and fill with your twitter keys
* Create, migrate and seed your database with `mix ecto.setup`
* Start the server with `mix phoenix.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
## Deploying
The project *as is* is ready to be deployed to your [heroku](https://www.heroku.com/) or [dokku](https://github.com/dokku/dokku) instance 😊.
## API
To get the stats:
`/api/languages`You can also filter by tag:
`/api/languages?tag=android`To get the list of available tags:
`/api/tags`## Real time websocket
Subscribe to:
endpoint: `/socket`
room: `stats:languages`Events:
on `update`: Receive the updated stats (so far, only the total occurrences count is sent)
```json
{ "total_occurrences": 1234 }
```