Skip to content

Shipstr/junior-backend-code-challenge

Repository files navigation

Koho Junior Backend Code Challenge

We'd like you to finish building the Rails application with a few key components to demonstrate proficiency in many common Ruby and Rails patterns, which you'll find yourself using day-to-day here.

Though each engineer does specialize in either front-end or back-end, we still sometimes have full-stack responsibilities. So we'd also like you to implement some basic functionality in the given Vue app.

We expect this exercise to take 2-4 hours at the most. If you ran out of time, please comment on what remains to be done in the README.

Since this is a backend-focused challenge, we are not looking for styling or CSS, but will notice if any improvements are made. For this backend challenge, the default configurations should work as-is. Feel free to update the configurations for your implementation of the challenge, if needed.

Please create a Rails API endpoint to provide service rates to the frontend Vue app.

Rate model

Shipping service rate with the attributes:

  • Name of company providing service, like a trucking carrier
  • A flat rate

Requirements

  • Create a way to load the rate_data.csv into the database using the rate model.
  • Write any specs you deem necessary.

Front-end/UI

The repo has Vue already installed with Webpacker.

Requirements

  • Fetch the data from the Rails app on page load.
  • Update the simple index view with a list of each carrier's name and its flat rate.

To run the app:

yarn
bundle
rails db:create
rails db:migrate
rails s

README

  • Update README.md with how to run your app and how to load your data.
  • Any details or decisions you want us to know about.
  • In a short paragraph: if you had more time, how would you improve your implementation and what would you do differently?

We encourage you to demonstrate your workflow via git commits with good messages.

When you are done, please zip up your repo and email it to [email protected]. If you need to clarify anything regarding this challenge, feel free to email us as [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •