0% found this document useful (0 votes)
47 views4 pages

Backend Test II - Edduar Alfredo Serra

The document describes a coding test for a movie listing web application using PHP, JavaScript, HTML, and CSS. It outlines requirements for account creation with validation rules, login, and a movie list section that retrieves data from an API and allows the user to search and sort the movie listings.

Uploaded by

hongo_yuggoth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views4 pages

Backend Test II - Edduar Alfredo Serra

The document describes a coding test for a movie listing web application using PHP, JavaScript, HTML, and CSS. It outlines requirements for account creation with validation rules, login, and a movie list section that retrieves data from an API and allows the user to search and sort the movie listings.

Uploaded by

hongo_yuggoth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Talent.

com
Product Devs Test

Important Considerations

• This test is recommended to be done with PHP using an MVC approach and object-
oriented programming, which means the heavy part of the logic should be
encapsulated in classes and methods.

• The main functionality and logic should be done in PHP, even though we are
allowing the use of JavaScript it should only use for basic frontend behavior.

• Very Important… Do not use MYSQL or any other engine to store data, it should be a
raw JSON inside of a flat file, all the CRUD operations should be done using this JSON
structure.

• The frontend must be good enough in a way that the user understands the
application flow, the use of frontend CSS framework like bootstrap or foundation is
allowed.

• This is not a frontend test, so please try to save time to build a basic understandable
frontend. But if you are interested in a frontend related position, we suggest you to
build the CSS by yourself without using any framework.

Description

The following tests refers to the creation of movie listing web application using vanilla
PHP, vanilla JavaScript, HTML, and CSS.

The structure is the following:

Account creation

This is the first step that the user should take, we need to create an account to gain
access to the main application (movie listing).

Important:

a. Use Regular Expressions for all the input validations on this part
https://www.tutorialrepublic.com/php-tutorial/php-regular-expressions.php
b. All validations must be done in the backend with PHP.

Fields and validations for account creation:


1. Username
a. No empty values are accepted.
b. Validate that it only contains letters.

2. Email
a. Must be a valid email, e.g., [email protected]
b. No empty values are accepted.

3. Phone number
a. It must have the following format: a “+” followed by 9 numbers e.g., +1
617 44 99.
b. No other special characters (aside from the plus sign “+”)

4. Password
a. Length of 6 characters
b. One letter must be Uppercased.
c. It must contain one of these special characters:
i. “*”
ii. ”-”
iii. “.”

If the information is submitted wrongly is important to have error messages that explain
why the input value is wrong or does not comply with the rules.

Login
After creating an account, the user should go to the login and submit the “username”
and “password” and if done correctly it will gain access to the main part of the
application.

If the information is submitted wrongly is important to have error messages that explain
why the input value is wrong or does not comply with the rules

Movie List Section

1. Insert API information.

Create a button that uses the following endpoint to retrieve movies info and
store it in your local database which must be a flat JSON file. The “s” get
parameter of the endpoint means search, feel free to use any movie search
parameter that you like.

https://www.omdbapi.com/?s=avengers&apiKey=fc59da33
This information should be enough to develop the test. But for more information
about the API, see the documentation: https://www.omdbapi.com/

2. Displaying the information.

Here we are going to create a movie list reader that is going to allow us to:

1. Search by
a. Title: approx. match
b. Date Range: date start and date end using only the year

2. Sort by
a. Title: Orders the table alphabetically by title
b. Date: Orders the table by date
c. Asc/Desc: ascending or descending order

You might also like