Skip to content

Instantly share code, notes, and snippets.

@oriadam
Last active February 11, 2021 13:27

Revisions

  1. oriadam revised this gist Feb 11, 2021. 1 changed file with 6 additions and 9 deletions.
    15 changes: 6 additions & 9 deletions exercise item list.txt
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,10 @@
    categories
    category_id name

    and add some initial categories and items
    2. add some initial categories and items.
    3. create an html page that displays the items grouped by category (any interpretation is fine).
    4. add a way to add new items. the item should also be added to the page instantly (ajax/SPA).

    2. create an html page that displays the items grouped by category

    3. at the bottom of the page add a form to add new items. the item should also be added to the page.

    use ajax
    you can use jQuery, jQueryUI, React or similar
    handle errors and xss.
    write something that you are proud of
    server side: php (any version you want)
    client side: feel free to use jQuery, jQueryUI, React or any other js library
    handle errors and xss, and write something that you are proud of
  2. oriadam revised this gist Feb 11, 2021. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions exercise item list.txt
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,5 @@ and add some initial categories and items

    use ajax
    you can use jQuery, jQueryUI, React or similar
    handle errors and edge cases
    add documentation
    write a code that you are proud of
    handle errors and xss.
    write something that you are proud of
  3. oriadam revised this gist Feb 26, 2020. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions exercise item list.txt
    Original file line number Diff line number Diff line change
    @@ -7,10 +7,12 @@

    and add some initial categories and items

    2. create an html form that displays the items table on screen
    2. create an html page that displays the items grouped by category

    3. add option to add/edit/remove items
    3. at the bottom of the page add a form to add new items. the item should also be added to the page.

    use ajax
    you can use jQuery, jQueryUI, React or similar but not a full solution like jqGrid
    no need to create interface to add/remove/edit categories
    you can use jQuery, jQueryUI, React or similar
    handle errors and edge cases
    add documentation
    write a code that you are proud of
  4. oriadam created this gist Jan 27, 2020.
    16 changes: 16 additions & 0 deletions exercise item list.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    1. create a mysql db with the following tables:
    items
    item_id name category_id

    categories
    category_id name

    and add some initial categories and items

    2. create an html form that displays the items table on screen

    3. add option to add/edit/remove items

    use ajax
    you can use jQuery, jQueryUI, React or similar but not a full solution like jqGrid
    no need to create interface to add/remove/edit categories