Giter VIP home page Giter VIP logo

2do's Introduction

2do web app

This is a to-do web app, that uses Jquery, JqueryUI, AJAX, CSS, PHP, HTML and CSS.

What it does?:

  • Add a task with a priority number and a due date.
  • Edit a task, changing the name or mofifying the priority number or the expiration date.
  • Mark a task as completed.
  • Delete selected tasks.
  • Order by due date or by priority.
  • You can use it as an REST API following the example described below.

All actions updates the database using AJAX or JSON in some cases... I'll give it a few last touches when I have time.

you can watch it working at: http://2do.dev4.webenabled.net/2do.html


How to make it work

This was requested as an interview test for a company so surely can be improved but I had to do it quick, feel free to use the code and modify it in every way you want...

To use it, just change the information of the database file "db.php", and create a table (this app uses a table named "task") following the structure showed in the file "database.sch". Or just do:

CREATE TABLE task ( id int(8) unsigned NOT NULL auto_increment, description varchar(500) collate utf8_unicode_ci NOT NULL default '', add_date timestamp NOT NULL default CURRENT_TIMESTAMP, due_date date NOT NULL, priority int(8) unsigned, status varchar(1), PRIMARY KEY (id) );


API use

INSERT TASK:

curl -v -X POST 'http://2do.dev4.webenabled.net/2do.php' -d 'accion=insertar' -d 'new_task=jane street' -d 'priority=10';

UPDATE TASK:

curl -v -X POST 'http://2do.dev4.webenabled.net/2do.php' -d 'accion=actualizar' -d 'upd_new_task=jane street upd' -d 'priority=9' -d 'taskid=87';

DELETE TASK: curl -v -X POST 'http://2do.dev4.webenabled.net/2do.php' -d 'accion=eliminar' -d 'idsarray=86,87'

LIST TASKS: curl -v -X GET 'http://2do.dev4.webenabled.net/2do_fetch.php' -d 'orden=pri' curl -v -X GET 'http://2do.dev4.webenabled.net/2do_fetch.php' -d 'orden=dd' curl -v -X GET 'http://2do.dev4.webenabled.net/2do_fetch.php'

=========================================

created by Nico Mengual - www.drawnic.com

2do's People

Contributors

nicomengual avatar

Watchers

 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.