Test for candidates interested in Server Side development.
- Collections are containers, Products belong to.
- Products have Collections associated with them.
- Example of a Collection object:
{
id: "77016869-136D-4FD3-9A96-06A3A3BB11AB",
collection_name: "Ready To Wear - Sale 2019"
}
- Example of a Product object (after
JSON.parse()
-ingproduct_collections
):
{
id: "EDD77672-58AC-499A-9C0C-651401CA5BDE",
product_name: "Lime Ridge",
product_collections: {
"77016869-136D-4FD3-9A96-06A3A3BB11AB": {
name:"Ready To Wear - Sale 2019",
id:"77016869-136D-4FD3-9A96-06A3A3BB11AB",
.
.
.
}
}
}
-
You need to write RESTful APIs for both Products and Collections.
-
You need to write an API that updates Collections with Product IDs of the Products that are associated with them.
-
There's a theoretical/conceptual question in
/question.txt
, you'll need to answer that as well. -
You can find the data for both Collections and Products in
/data
folder. -
The folder structure should be chosen with future development in mind.
- If you feel there's a certain reason for the folder structure you've chosen to go with, mention it in a seperate file as well. (not important though)
-
Use Express to setup the server.
-
There will be a million ways to do this, so the way you choose to do it will be looked at carefully.
-
Fork this repository, do your work, and once the code is done, share your repository link in a reply to the original email.
- The approach you take to solve the problems.
- The way you code (this includes coding practices, standards, formatting, etc).
- Git usage.