WebReinvent Internal Docs
Getting Started

CRUD Operation

CRUD stands for Create, Read, Update & Delete.

Read the instruction carefully and write your code.

This task can be performed in following configurations:

A. VaahCMS

If you are using vaahcms, use migration to create your database table and columns.

B. NuxtJS with VaahCMS API

Your API will be responsible for the database transactions.

Requirements

  1. You need to create a CRUD operation for an entity Orders.
  2. Each order will have name, slug, is_active, status, amount, tax, total_amount and other common columns (Use your common sense).
  3. Tax will 10% of the amount.
  4. total_amount is total of amount + 10% tax of the amount
  5. slug, tax and total_amount should automatically calculate while entering the name and order amount.
  6. status again you can decide what kind of status an order can have.
  7. App should allow to do bulk actions like activate, deactivate, change status, delete, restore.

Evaluation

Your code will be evaluated based on following quality guidelines:

  1. Properly intended code. Learn more at: https://www.youtube.com/watch?v=V3J5DWKPYts
  2. Variable name: Learn more at: https://docs.vaah.dev/guide/code.html#naming-conventions
  3. Routes name: https://docs.vaah.dev/guide/laravel.html
  4. Overall code flow

Instruction

  1. Do not take help from other colleagues
  2. Feel free to research on internet and learn more
  3. Feel free to ask questions about the requirements
  4. Before asking your seniors to review your code, make sure you all the requirement again and your application has all the feature requested.

Copyright © 2024