Giter Site home page Giter Site logo

lecter's Introduction

Lecter Logo

Gem Version Ruby Style Guide CircleCI Test Coverage Maintainability All Contributors

Evrone Logo

Table of contents

๐Ÿšจ Problems

  1. Developers don't know how their app works.
  2. Reading code is a long process.
  3. Memorize many lines of code is difficult.

๐Ÿš€ Solution

  1. The main purpose of that gem is to help developers to understand which code executes by request.

  2. Gem's work could be compared with visiting a doctor: You give symptoms of your disease and receive a diagnosis.
    You give parameters of a request and receive executable code.

  3. You don't have to work with debuggers, read and remember many lines of code.
    Just give&receive!

โ€ผ๏ธ Requirements

Please use a multithreading server such as a puma with more than 1 workers.
More information about how to tune puma server please follow the link.

๐Ÿ› ๏ธ Installing

Installing is a very simple process.

  1. Add the gem to your Gemfile:

    group :development do
      git 'https://github.com/neodelf/lecter.git', branch: 'master' do
        gem 'lecter'
      end
    end
  2. Execute in a terminal in app's directory:

    bundle install
  3. Add routes to your config/routes.rb:

    mount Lecter::Engine => '/lecter'

๐Ÿ•น๏ธ Using

You should do two simple steps:

  1. Go to /lecter/diagnosis/new

  2. Fill in form fields with request parameters:

    HTTP method - request's method
    Endpoint - use absolute route like localhost:3000/blogs
    Body(raw) - request's parameters

๐Ÿ‘จโ€๐Ÿ’ป Example of using

There is an example with POST method:

  1. Go to localhost:3000/lecter/diagnosis/new

  2. Fill form with:

    HTTP method - POST
    Endpoint - localhost:3000/posts
    Body(raw) - "post"=>{"title"=>"New title", "description"=>"Desciption"}

    lecter example post form
  3. Submit form

  4. Receive result

    lecter post form result

โค๏ธ Contributing & Contributors

  1. Bug reports and pull requests are welcome.
  2. There are many issues as a proposal to improve this library. If you have any ideas please feel free to write your thoughts in a new issue.
  3. Choose what you like to fix or improve on the issues list. You can ask any questions in the comments.
  4. โ€ผ๏ธ Mention of each contributor will be on the README file.

Thanks goes to these wonderful people:


Aleksey Glukhov

๐Ÿ’ป ๐Ÿ“–

๐Ÿ—ƒ๏ธ License

The gem is available as open source under the terms of the MIT License.

lecter's People

Contributors

allcontributors[bot] avatar dependabot[bot] avatar neodelf avatar pineapplethief avatar theredorm 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.