Now days, most of the companies are giving devices (Laptops, Tablets, mobile phones) to their employees. Each employee can have more than one device. One device belongs only to one employee. We need to have a device inventory where the company admins can manage the fleet of the company devices. We must provide a cloud solution where each company can use to manage their devices.
In more detail, the company admins must be able to:
- Insert update and delete employees.
- Insert update and delete devices of a particular employee.
- View all the employees in a list.
- View employee details including his/her number of devices.
- View a dashboard with statistics about the devices:
- The average number of devices per employee.
- The numbers of devices per type.
Your goal is to provide:
- A backend that serves a rest api for the required endpoints.
- A frontend that consumes the rest api and presents the required data.
-
Company
- Name
- Address
-
Employee
- Name
-
Device
- Name
- Serial Number
- Type
You must also define the Ids and foreign key where there are needed for the entities.
Note No need to insert/update/delete companies. Thus, you can hard coded at least 3 companies.
A publicly available git repository with a README.md that explains how to compile, build and start the project.