Skip to content

API Rest of twitter analytics panel

License

Notifications You must be signed in to change notification settings

gerardo-junior/TAP.api

Repository files navigation

API Rest of twitter analytics panel

    [+] AUTOR:        Gerardo Junior
    [+] SITE:         https://gerardo-junior.com
    [+] EMAIL:        me@gerardo-junior.com
    [+] GITHUB:       https://github.com/gerardo-junior/tap.api
    [+] TELEGRAM:     @gerardojunior
master develop
Build Status Build Status

Come on, do your tests

But what will you need?

Okay, how to put it to up?

First clone of the project

git clone https://github.com/gerardo-junior/tap.api.git
cd tap.api

Copy the configuration file, and edit

cp config.example.ini config.ini # and configure!

ready, now you can use ;)

docker-compose up # the first time, it will download the images

*~ Tip: using the docker-compose you can add -d and you can keep with your terminal ~*

To access the api:

Wait for message and open localhost:1234 in your browser

To use a cli:

docker-compose exec api php console

** For more information about the api container read the README of api.environment

How can i use the cli?

docker-compose exec api php console twitter tweets [term of serach]
  • ~ Tip: in bash, the # character is used for comments so you should escape them, with the \ . example: \# ~ *

examples of use:

# get last tweets
docker-compose exec api php console twitter tweets \#worldCup 

# real time tweets
docker-compose exec api php console twitter tweets --real-time \#worldCup
  • ~ You can filter by \#hashtags, by @users, by text .... *

How to delete used images

docker-compose down --rmi all

To delete the database:

docker volume rm tap-dbdata

Run without docker:

you will need to install:

and configure apache for /public folder

Used packages:

for development environment:

Troubleshooting

Is the port already used by other services?

edit the file docker-compose.yml

# (...)

api: 
  image: gerardojunior/tap.api.environment:stable
  restart: on-failure
  volumes:
    - type: bind
      source: ./
      target: /usr/share/src
  ports:
    - [any door]:80
    - [any door]:8080
  links:
    - mongodb
  depends_on:
    - mongodb

# (...)

The browser just says: "connection reset" or something like that with child pid xxx exit signal Illegal instruction log ?

phalcon does not have full support for the multlib architecture, so maybe re-compiling the environment might resolve.

please read: README.md but remember to tag with tag of docker-compose.yml ~ gerardojunior/tap.api.environment:stable by default

License

This project is licensed under the MIT License - see the LICENSE file for details

About

API Rest of twitter analytics panel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published