Git Fetcher is a simple web-app to get some repositories from GitHub.
The usability of this system is simple. The only thing that you need to do is choose one of five button displayed with Programming Language names and you'll be redirected to another page with repositories names, their own description and an hyper-link to their github page. You can choose one of five languages:
- Ruby;
- Elixir;
- JavaScript;
- Swift;
- GO.
- Ruby v2.3.7
- Rails v5.2.1
- Docker with Compose.
- Bootstrap 4.0 for the styles of front-end.
- Puma - A web server built for concurrency.
- Git-Trend - Responsable for get the trend-repositories in Github.
- RSpec - Responsable for creation and executation of the Tests.
As I said, I used Docker for create the dev & test environment.
- Clone this repository.
- Build this repository with command:
$ docker-compose up --buildYes, you can. You need to enter in a docker executing the comand:
$ docker exec -it <container-name> bashSample:
$ docker exec -it gitfetcher bashAnd voilà
You have to do again the previous command:
$ docker exec -it <db-container-name> bashSample:
$ docker exec -it gitfetcher-db bashBut now, is necessary enter into PSQL:
$ psql -d <database-name>Sample:
$ psql -d gitfetcher-dbNow, you can execute your own T-commands.
ps: for execute the command, you need to put ; in the end of line.
ps2: to exit the db container, you have to execute the command "\q".
Yes. We have. For execute the tests you have to follow this steps:
$ docker exec -it gitfetcher bash
$ rspecAnd the tests will be executed :)
Sure. I already have published this app into Heroku: https://gitfetcher-rails.herokuapp.com/
Thank you :)