cylon-v / interview-school

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goji Labs Interview Take-Home Project

Overview

This application is meant to represent a school. There are teachers, subjects that they teach, and the relation between them. We want to add classrooms, students, and another model called sections. A section represents a teacher teaching a subject in a specific classroom at a specfic time with students who attend the class. Think of it like the join model between all the other entities, and with specific times. Some sections are taught only on Monday, Wednesday, and Friday, others are only taught on Tuesdays and Thursdays, and some are every day. Sections typically are 50 minutes long, but they can also be 80 minutes. The earliest sections start at 7:30am and the latest ones end at 10pm.

Goals

  1. Students should be able to add/remove sections to their schedule
  • A student cannot be in two sections that overlap
  • For instance, if I add General Chemistry 1 to my schedule, and it's on MWF from 8:00 to 8:50am, I cannot enroll in any other sections between 8:00 and 8:50am on Mondays, Wednesdays, or Fridays.
  1. Students should be able to download a PDF of their schedule.
  • For each section include subject, start time, end time, teacher name, and classroom name

Guidelines

Develop this in your own fork. After you build your models, add a few different records for each model in seeds.rb or use either factories or fixtures. Use any frotend framework you like, or feel free to use server-side rendering. Refactor or remove any existing code necessary, the code currently here is a starting point. Do not bother setting up unnecessary systems right now, like Sidekiq or Devise. Assume that every browser user is a student, so you don't need to think about user management.

Time Constraints

Do not spend more than 4 hours implementing the goals above. It's not mandatory that the goals above are 100% working, due to the time constraint, we're most interested in seeing your best work. Write this code as if you're contributing to a larger project with multiple developers who will critique your work. If you're running out of time and something isn't funcional yet, that's okay, make sure that whatever is functional is both complete and polished.

Thank you Dusan Orlovic for your work in building this

About


Languages

Language:Ruby 69.8%Language:HTML 19.9%Language:JavaScript 6.9%Language:SCSS 2.3%Language:CSS 1.1%