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
- You need to create a CRUD operation for an entity
Orders
. - Each order will have
name
,slug
,is_active
,status
,amount
,tax
,total_amount
and other common columns (Use your common sense). - Tax will
10%
of theamount
. total_amount
is total ofamount
+10% tax of the amount
slug
,tax
andtotal_amount
should automatically calculate while entering the name and order amount.status
again you can decide what kind of status an order can have.- 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:
- Properly intended code. Learn more at: https://www.youtube.com/watch?v=V3J5DWKPYts
- Variable name: Learn more at: https://docs.vaah.dev/guide/code.html#naming-conventions
- Routes name: https://docs.vaah.dev/guide/laravel.html
- Overall code flow
Instruction
- Do not take help from other colleagues
- Feel free to research on internet and learn more
- Feel free to ask questions about the requirements
- Before asking your seniors to review your code, make sure you all the requirement again and your application has all the feature requested.