Skip to content

Instantly share code, notes, and snippets.

@michaelprimez
Created November 9, 2020 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelprimez/8748b71e17eee133ec7c643e8f542f5e to your computer and use it in GitHub Desktop.
Save michaelprimez/8748b71e17eee133ec7c643e8f542f5e to your computer and use it in GitHub Desktop.

Description

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.

Goal

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.

Entities

  • Company

    • Name
    • Address
  • Employee

    • Name
    • Email
  • 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.

Delivery

A publicly available git repository with a README.md that explains how to compile, build and start the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment