Giter Club home page Giter Club logo

rails-engine-1's Introduction

Rails-Engine

  • Rails-Engine is an app for developers to access the business database. The users are allow to search/find informations on merchants, items, and their invoices, as well as business analytic statistics

https://github.com/Omegaeye/rails-engine

Authors

Table of Contents

Getting Started

GemFile/Dependency

gem 'fast_jsonapi'
gem 'rspec-rails'
gem 'capybara'
gem 'launchy'
gem 'pry'
gem 'simplecov'
gem 'shoulda-matchers', '~> 3.1'
gem 'orderly'
gem 'factory_bot_rails'
gem 'faker'

Prerequisites

What things you need to install the software and how to install them

  • rails
gem install rails --version 5.2.4.3

Installing

1. Clone Repo
2. Install gem packages: `bundle install`
3. Setup the database: `rails db:create`
4. Migrate and Seed the database: `rails db:setup`

Method Highlights/Tests

Search for an items by prices

  • Trying out public_send, this particular method send the values to the method inside the model.

  • Utilizing scope (class method), and the naming convention, the public_send able to pass the params value into the correct method.

Testing this Method

  • Testing items by prices

    • Happy Path

    \

    • Sad Path
    • Edge Case

Running the tests

In order to run all tests and see coverage run:

bundle exec rspec

API End Points

Built With

  • Ruby/Rails
  • HTML

License

  • Me and me only

Acknowledgments

  • My 2011 BE cohorts that helped me out a lot.

rails-engine-1's People

Contributors

omegaeye 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.