https://github.com/eltonsantos/locaweb-twitter
Application that list tweets most relevants and the users who made the most mention of Locaweb.
https://github.com/eltonsantos/locaweb-twitter
rspec ruby sinatra
Last synced: about 2 months ago
JSON representation
Application that list tweets most relevants and the users who made the most mention of Locaweb.
- Host: GitHub
- URL: https://github.com/eltonsantos/locaweb-twitter
- Owner: eltonsantos
- License: mit
- Created: 2017-01-31T06:51:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-02T17:48:59.000Z (over 9 years ago)
- Last Synced: 2025-01-11T09:38:52.351Z (over 1 year ago)
- Topics: rspec, ruby, sinatra
- Language: Ruby
- Size: 149 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Locaweb Twitter
Application that list tweets most relevants and the users who made the most mention of Locaweb.
## Dependencies
- Ruby 2.3.3 version
- Rspec 3.5.0 version
- Sinatra 1.4.8 version
## Installation
On terminal:
1. `git clone git@github.com:eltonsantos/locaweb-twitter`.
2. `cd locaweb-twitter`.
3. `bundle install`.
4. run `rackup -p 4567`.
## Usage
In your browser access `localhost:4567`.
## Tests
For use test run `rspec` in terminal.
The following tests were performed using RSpec:
- Has a version number
- Has a responde HTTP 200
- Does use JSON valid
- Is a valid username
- Renders the index page
- Renders the most mentions page
- Is Locaweb id 42
- Have a valid api url
## How it was developed
Firtly, was developed just using ruby, run `bundle gem locaweb-twitter`, but difficulties were encountered starting the server because of .erb files. So it was decided to use the gem Sinatra only to facilitate in that part of the application.
>Of course, it's worth mentioning that it's my first time using Sinatra, so I'm still learning.
For the frond-end, was used Bootstrap and nothing more.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/eltonsantos/locaweb-twitter.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).