Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 848 Bytes

File metadata and controls

40 lines (32 loc) · 848 Bytes

#Developers developers developers, this is a simple test

Create API

In Python

Create a simple API that can fetch and insert data using HTTP GET and POST. Use this structure;

{
    'PRODUCT': {
        'NAME':'',
        'PRICE':0,
        'TEXTVAL1':'',
        'TEXTVAL2':'',
    },
    'META': {
        'LASTUPDATED':'',
        'CREATED':'',
    }
}

##DOM handling in Javascript.

  • Drag and drop div element into section (see index.html)
  • Make AJAX requests to the API you made.
    • GET a product from your API and print the response in the DOM.
    • POST a new product.

Make sure that you update the LASTUPDATED and CREATED fields properly. Save times in UNIX epoch.

PHP SQL handling

Using a SQLite file:

  • Create a USERS table
  • Create register and login functions
  • Use hashed passwords

##Done? E-mail jobb@duva.se