Giter VIP home page Giter VIP logo

taskapp's Introduction

TaskApp

This application will let you manage your daily tasks. You can create new tasks and search for existing tasks using filtering. TaskApp works with multiple users. Each user has their own tasks.

Setup

Install required tools:

  • ruby (use rbenv or rvm). Proper version is defined in .ruby-version file.

Run following commands:

  • bundler install to install all required gems
  • rails db:create db:migrate to create database and run all migrations
  • rails db:seed to seed database with default data

Development

Run command rails server and you are ready to go. Visit website http://localhost:3000 and sign in as [email protected] user with qwe123 password.

Your tasks

  1. Add possibility to sort tasks. Clicking on "Title" and "Priority" labels should sort tasks by corresponding attribute. Second click should reverse order.
  2. TasksController#index method is a little bit messy. Refactor it to make it more readable. Beside readability do you see any other problems with its code? Could you fix them too?
  3. Some user reported that there is a security vulnerability in the app. Somehow an user can create a task as another user and we have no idea how is it possible because we already call before_action :authenticate_user! in TasksController. Can you find the problem and fix it?
  4. Code is untested. Add RSpec to the project and write specs which covers changes you have made in previous tasks.

After you finish send us entire code in zip/gzip file.

taskapp's People

Contributors

radarek avatar

Watchers

James Cloos avatar  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.