Coder Social home page Coder Social logo

scheme's Introduction

Scheme

Scheme is a clone of Asana, the popular project management app. Scheme was made with Ruby on Rails and React.js.

Interested in using Scheme? Please see the FAQ.

Screenshots

Registration Page

registration_page

Task Detail

task_detail

Project Drawer

project_drawer

Invite Modal

invite_modal

Technical Details

Scheme users can prioritize tasks by dragging and dropping them into the desired order.

Task order is maintained in a linked-list data structure. Each task knows the IDs of its next and previous tasks, and every project knows its last_task_id. To assemble the tasks in the correct order and avoid n+1 queries, Scheme retrieves an unordered group of tasks within a project, hashes them by ID, and then references the next_task_ids to create an array of tasks in the user’s designated order.

var sortTasks = function (tasksObj, lastTaskId) {
  // start by inserting last task into ordered array
  var taskArr = [tasksObj[lastTaskId]];
  // then insert the previous task, until !previous_task_id
  while (taskArr[0].previous_task_id) {
    taskArr.unshift(tasksObj[taskArr[0].previous_task_id]);
  }

  return taskArr;
};

Thanks to the linked-list structure, re-ordering tasks within a project is an O(1) time operation, and requires updating only 3-5 task records, no matter how many tasks a project includes.

Features

  • Add / delete / complete tasks
  • Assign tasks and set deadlines
  • Create projects to organize tasks
  • Invite other users to join your "team"
  • Drag-n-drop ordering of tasks
  • Drag-n-drop uploading of profile pictures
  • Comment on tasks
  • See new tasks and comments from other users in realtime

Technologies Used

  • React.js
  • Flux
  • Ruby on Rails
  • JSON API
  • PostgreSQL
  • Pusher
  • Sendgrid
  • Heroku

Original Design Docs

FAQ

Because I receive a lot of emails about Scheme, I'm adding a FAQ.

Can I use the code in this repo?

Yes. You don't need to pay me or attribute anything to me. Scheme is distributed under the MIT License.

Will you help me deploy or modify Scheme?

Sorry, no.

scheme's People

Contributors

jordanholliday avatar

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.