rafayet-monon / github-repo-searcher

Search repositories from github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Repository Searcher

Simple application that can search to github for repositories.

Warning: This app searches with unauthenticated requests. It can perform 10 requests per minute and ans shows first 1000 search results.

Site link

Application Screenshot

screenshot

Project Setup

Prerequisites

  • Ruby version: 2.7.2

Development

  • Setup the Postgres databases:

    rails db:setup
  • Run the Rails app

    rails s

Tests

This application have several type of tests

  • Codebase tests (Checks for linting issues)
  • Unit tests
  • Request tests
  • System tests (Uses headless chrome browser)

Use the command to run all the tests together

 bundle exec rspec

Github CI

  • On every Pull request the CI will run the tests.

Github CD

  • User Heroku for deployment
  • Deploys to staging server on push to development branch
  • Deploys to production server on push to main branch

You need to setup 3 secrets to the github repository for the deployment to work

  • HEROKU_API_KEY - Heroku api access key
  • HEROKU_PRODUCTION_APP - Heroku production app name
  • HEROKU_STAGING_APP - Heroku staging app name

About

Search repositories from github


Languages

Language:Ruby 78.6%Language:HTML 14.3%Language:JavaScript 5.9%Language:SCSS 1.2%