Giter Site home page Giter Site logo

rails-project-lvl4's Introduction

Github quality analyzer

Hexlet tests and linter status:

Actions Status build

The service monitors the quality of repositories on the githab. It tracks changes and runs them through built-in analyzers, and then sends a notification to the user's email. Currently 2 languages are supported: ruby, javascript. Demo

How to run

How to run the application on a localhost server

Create .env file in the root project and write:

  GITHUB_KEY=github_client_id
  GITHUB_SECRET=github_client_secret
  BASE_URL=.... # http://localhost:3000 or (if u use ngrok) ngrok url

Run this commands:

  make install # Install dependencies
  make setup_db # Setup database
  make run # Run localhost server
  # and visit http://localhost:3000/

How to deploy the application on Heroku

  make heroku-create-project

  heroku config:set SECRET_KEY_BASE=$(rake secret)
  heroku config:set BASE_URL=$(heroku info -s | grep web_url | cut -d= -f2)
  heroku config:set RACK_ENV=production
  heroku config:set RAILS_ENV=production
  heroku config:set GITHUB_KEY=github_client_id
  heroku config:set GITHUB_SECRET=github_client_secret

  # if you don't want to send real emails that you should create an account at  mailtrap.io. And copy the settings here:
  MAIL_USERNAME=...
  MAIL_PASSWORD=...
  MAIL_HOST=smtp.mailtrap.io
  SMTP_PORT=2525

  make heroku-deploy

How to test

  make test

rails-project-lvl4's People

Contributors

alexsmkh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.