This practical part of the interview is designed to assess your technical skills. There is no single correct answer to this test, but we highly value good performance, well-tested applications, strong logic for aggregations, and excellent clean code and creativity.
The problem involves creating an API using Express for a sneakers store. You are required to implement two public routes:
- /products: This route should return an array containing only the products that are currently in stock.
- /price/{user_id}/{nombre_producto}: Some clients in this business have special pricing for certain brands. This route should return the special price for the given client and brand, if available. If the client doesn't have a special price for the brand, the route should return the base price.
If you encounter any difficulties or have any questions, please don't hesitate to reach out to us at [email protected]. We wish you the best of luck!
- User: drenvio
- Password: moM5f3AodwLE5d0A
- MongoDB URL: mongodb://drenvio:@ac-aemgtkt-shard-00-00.unqyghm.mongodb.net:27017,ac-aemgtkt-shard-00-01.unqyghm.mongodb.net:27017,ac-aemgtkt-shard-00-02.unqyghm.mongodb.net:27017/?replicaSet=atlas-y8oxsk-shard-0&ssl=true&authSource=admin
We are interested in a good architectural pattern, you can choose any Architecture, but it should be clear and easy to read, because we will discuss it with you at the end, we appreciate if the architecture has all the layers for each pattern.
Deploying this API is not mandatory, but we would greatly appreciate it if the project is delivered already deployed.
Once you have completed the task, please send us an email at [email protected]. In the email, kindly let us know if you encountered any difficulties during the process, how you resolved any challenges, and if you have any recommendations for improving the API for the sneakers store. Additionally, please provide the URL to your favorite public repository or the link to the deployed application. Your feedback and insights will be greatly appreciated.