This case study is designed for candidates to showcase their skills and coding style focusing on Laravel, Vue and TailwindCSS. You may use more technologies apart from the 3 mentioned.
- Fork this repo to your github account
- Complete the tasks given
- Once completed, create a PR to this repository
- Lastly, add some guidance or instruction on how to run your code
You must work on this assignment using:
- Vue (optional for BE dev)
- TailwindCSS
- Laravel (optional for FE dev)
- As guest, I want to be able to register an account
- As guest, I want to be able to login using registered account
- As user, I want to see list of products after login
- As user, I want to be able to add product to cart
- As user, I want to be able to place order for added products in cart
- As user, I want to see my order history
- As user, I want to be able to logout
- Verify email after registration
- User activity log e.g. login, logout, add to cart, place order etc
- Product attributes and filtering e.g brand, category
- Different user can see different price for products
- Add unit tests
- Deploy app to a server
While completing the above tasks, we will be particularly looking at how you handle the following aspects:
-
Data Validation: Proper validation of user inputs and data integrity checks.
-
Data Transformation: Efficient and logical transformation of data between different parts of the application.
-
Query Efficiency: Optimization of database queries, including proper use of Laravel's query builder and Eloquent ORM features.
-
Consistent Naming Convention: Use of snake_case for database columns, camelCase for PHP and JavaScript variables, and adherence to Laravel and Vue.js naming conventions.
-
Proper Handling of Monetary Values: Accurate representation and calculation of prices and totals.
-
Database Design: Well-structured migration files that demonstrate thoughtful schema design, including appropriate indexes.
-
Code Organization: Clear, modular, and maintainable code structure.
-
Security Best Practices: Implementation of necessary security measures to protect against common vulnerabilities.
-
API Design (if applicable): RESTful design principles and clear documentation.
-
Error Handling: Graceful error handling and informative error messages.
- Ensure your code is well-commented and follows PSR-12 coding standards for PHP.
- Include a README.md file with setup instructions and any assumptions made.
- If you have suggestions for improving this case study, feel free to include them in your submission.
We look forward to reviewing your implementation and discussing your approach during the interview process.
P/S: If you think there is a better way for us to assess your technical skills, feel free to suggest. We are constantly looking to improve our interview process.