项目作者: jordanholliday

项目描述 :
Rails上的Asana克隆与React / Flux
高级语言: JavaScript
项目地址: git://github.com/jordanholliday/Scheme.git
创建时间: 2016-03-26T21:02:59Z
项目社区:https://github.com/jordanholliday/Scheme

开源协议:MIT License

下载


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.

  1. var sortTasks = function (tasksObj, lastTaskId) {
  2. // start by inserting last task into ordered array
  3. var taskArr = [tasksObj[lastTaskId]];
  4. // then insert the previous task, until !previous_task_id
  5. while (taskArr[0].previous_task_id) {
  6. taskArr.unshift(tasksObj[taskArr[0].previous_task_id]);
  7. }
  8. return taskArr;
  9. };

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

" class="reference-link">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.