Coder Social home page Coder Social logo

gradebook's Introduction

Grade Book

A ruby on rails application that tracks grades, assignments, and courses for students and teachers. Teachers can add students to classes, add assignments to classes, give students grades on those assignments and create new courses. Students have a much simpler view of just their personal yet useful information.

Trouble When Building

Most Difficult Bug(kinda)

Not really a bug but a way of visualizing data. In order to get most of the functionality of this site including the grades below I really had to step back and really picture this data and how it would interact with the site and the users interacting with it.

def add_grade_to_student
  @course = Course.find(params[:course_id])
  @assignment = Assignment.find(params[:assignment_id])
  @student = Student.find(params[:add_grade][:student_id])
  @course_grade = Enrollment.find_by(course_id:params[:course_id], student_id:params[:add_grade][:student_id])
  @course_grade.update_attributes(tot_grade: @course_grade.tot_grade.to_i + params[:add_grade][:grade].to_i)
  @add_grade = Grade.create(grade:params[:add_grade][:grade], assignment_id:@assignment.id, student_id:@student.id)
  redirect_to assignment_show_path(course_id:@course.id, assignment_id:@assignment.id)
end

Wireframe

alt text

ERD

alt text

Deployment

Gradebook gave me some heroku deployment issues but overall not too many. Simply weirdest bug was a day before this project was due and deployment worked in the AM but not the PM. I got it to finally work and I believe it had something to do with old data in the database. Data that didn't have the proper attributes causing errors? Once I destroyed the database and re-migrated it seemed to have been fixed like magic.

Built With

  • Ruby - Programming language used
  • Rails - Back-end used in creating the site
  • Materialize - Front-end used for styling the site

Authors

Daniel Finelli -- danfinelli1

License

This project is licensed under the MIT License - see the LICENSE.md file for details

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.