Twitter trending topic text analysis
- Docker
- docker-compose
- Inside the project root run
docker-compose build
- Inside the project root run
docker-compose up
- The service must be up and running.
- In console run
docker-compose exec web bee migrate --conn "root:root@tcp(db:3306)/blog?charset=utf8"
- Make a
POST
request tolocalhost:8080/v1/users
with body like the following:
{
"name": "Jon",
"email": "jon@snow.com",
"password": "Test.94"
}
- Make a
POST
request tolocalhost:8080/v1/users/login
with body like the following (existing user):
{
"email": "jon@snow.com",
"password": "Test.94"
}
- The succesful response will be like:
{
"name": "Jon",
"email": "jon@snow.com",
"jwt": "some_example_jwt"
}
- The value corresponding to
jwt
field will be your auth token to use the sentiment analysis endpoints by putting it as a header (Authorization) value to the different requests.
- [GET]
/v1/trends?id={WOEID}&exclude{info_to_exclude(e.g hashtags)}
- [GET]
/v1/trends/anaysis?q={trend_to_analyze(e.g Bears)}