Git Product home page Git Product logo

rails-test's Introduction

Rails Test

This Rails application is a foundation for the following Ruby on Rails technical test. To start the test please fork this repository and follow the instructions below.

Tasks

  • Create an API endpoint that receives the following format params hash and creates the resources:
{
  sales: [
    {
      date: '20140103',
      time: '0700',
      code: 'FL',
      value: '2.00'
    },
    {
      date: '20140103',
      time: '0815',
      code: 'DO',
      value: '1.00'
    }
  ]
}
  • Create a JSON API endpoint for reading a specific sale.
  • Create a JSON API endpoint for destroying a specific sale.
  • Implement password security for sales during their creation that must then be used to retrieve that sale.

Notes

  • The creation API endpoint should be able to receive both a singular resource hash and an array of multiple resource hashes.
  • Data should be stored in in it's appropriate format but presented in the fashion demonstrated above.
  • Please implement password security manually - do not use has_secure_password.

Caveats & Rules

Time Constraint

You should not spend more than 4 hours on this test. We measure time spent developing as the time between your first and last commit. If you complete the test before reaching the time limit do not feel obliged to continue up to the 4 hour marker.

Testing

We use RSpec and follow an outside-in testing approach. Approach testing your work in the same way you would during your day-to-day development as we use tests as a marker for code quality.

Commit History

Please keep your commit history clear and descriptive, following best practices for Git commits. Your commit history allows us to observe your thought process and how you approach a problem.

Tips & Hints

  • Hexagonal Rails
  • Demonstration of best practices
  • SOLID principles
  • Design patterns
  • TDD

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.