Coder Social home page Coder Social logo

coding_test's Introduction

Coding Challenge

I added continuous integration, unit & application testing.

View live @ Live Site

Test

The Sentia coding test requires you to create a Ruby on Rails application with a few features listed below. A CSV will be provided. The task is; Part 1

  1. Create a Ruby on Rails application.
  2. With the provided CSV file, you will need to create a form that can upload the file and import the data into a database. (Prefer Postgresql)
  3. Once the data has been imported, you will need to display the imported data in a HTML table. Part 2
  4. Once Part 1 is completed, you will need to add the ability to order the Name, Date and Number columns by ascending/descending when clicking on the column headers. This should be achieved without reloading the page.
  5. Add a search field so that you can also filter the table results by Name. This should also be done without reloading the page.

Sentia coding CSV file - https://drive.google.com/file/d/0B0zzNl8wYyy1dkg4NnJubEItT1JqcC1QVkNRMVczZFZIQ1Nj/view?usp=sharing

Setup

bundle install
rake db:create
rake db:migrate

Run Testing

bundle exec rake spec

Features of submission

  • Mobile responsiveness
  • CSV validations
  • Dynamic sorting without reloading
  • Unit testing with Rspec, Factory_Rails and Capybara

Coding Decisions

  • Use Capybara to test CSV has been properly configured.
  • Use continious integration through Travis CI
  • Use Bulma as the CSS framework
  • Insensitive search bar

Challenges

Figuring out how to add testing for CSV import.

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.