Coder Social home page Coder Social logo

taskmanager's Introduction

Task Manager

My project during Coderslab bootcamp based on Symfony2, Twig, Doctrine, FOSUserBundle, HWIOAuthBundle, KnpPaginator, Bootstrap, jQuery.

Deplyed the project on AWS.

IDE: PHP Storm.

Note: HWIOAuthBundle doesn't connect to FB, because I would have to register the app at first.

Tips:

  • add 'use \DateTime' in Entity and use method 'new DateTime()' to create object with date - twig will recognize and render the datetime (note, this is exception for namespace!)
  • add {'attr': {'novalidate': 'novalidate'}} to form(form) to disable HTML5 validation to present exact errors to a user
  • add to an object in newAction that generates Form predefined date to present in a form before submitting ($task->setDeadline(new DateTime());)
  • create single fields.html.twig and add it to config.yml to use the same template in all fields in the project (I added it manually anyway ;))
  • use jQuery for hide onClick event to show details to use without reloading a page
  • add list of categories from other DB by adding to Your_action_nameForm "->add('category')". Also you need to add "__toString" to appropriate Entity to parse names and provide them to the form as list to choose
  • add confirmation for "Delete" Task button using SweetAlert
  • add email confirmation for registration in fos_user just by enabling it in config.yml. Remember to set postfix on your server and mailer in parameters.yml!
  • using fos_user and ROLEs you can block access to stags, e.g. 'path: ^/category/new , role: ROLE_ADMIN' -> only The Admin can create new Categories. You can check in twig ROLE and show or hide a link "Create a new category" as required.
  • add sorting Tasks using knp paginator bundle -> https://github.com/KnpLabs/KnpPaginatorBundle/tree/2.5.3
  • add HWIOAuthBundle to support login via FB (and other services)
  • deployed the app on AWS

To improve/ TODO:

  • create a simple questionnaire (e.g. date of birth day, anniversary)
  • create predefined tasks based on answers (e.g. create Task to choose a present and seperate to buy it)
  • creation datetime with server's date, not user's date - add UTC or timestamp

taskmanager's People

Contributors

jpawelczak avatar

Watchers

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