Giter Site home page Giter Site logo

rubycourse's People

Contributors

karpiu avatar michailgames avatar

Watchers

 avatar  avatar  avatar

rubycourse's Issues

Associate Students with Tasks

Relation many-to-many throught some table student_task. In this table we also want to remember state of the task. Task can be in one of 5 states {free, wip, done, rejected, accepted}.

Create models + migrations

First and foremost: install newest postgresql and configure app to use it. Then create migrations + models:

Student:

  • name
  • github login

Milestone (has many tasks):

  • number
  • title

Task (belongs to milestone):

  • title
  • content

Add gem devise + modify view

Add authentication through github, but the only account that will be able to login should be admins account (admins login should be hardcoded somewhere in config files).

Modify ranks view so that only admin can click links in table and see refresh button. Don;t forget to add before_filter authenticate on refresh action.

Add styles

Make rank look nice. Add different and meaningful colors to task states. DO NOT use have machinery like bootstrap, we don't need that.

Clean app after init

Remove unnecessary comments in routes.rb. Add root route that leads to RankController#rank + view.
Remove uneccessary files in public folder.

Check state of task

Create functionality (add it to lib directory) that does:

"For given student and task, check its state on github (using Github API)".

Create main view

Add table to Rank View that shows state of each task for each student. Group tasks by miletones.

Add global refresh button

Add button that updates database (student_task table), that is: for each student and task check the status using code written in lib.

Add some students/milestones/tasks

use rails console to add students to database. You will probably have to create a few accounts on github. Add a milestone and few tasks by hand for each student.

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.