FE Assessment

Installation Steps

yarn install && yarn dev

Features

Authentication

There is a login page created to allow only a single admin account to log in. This account is automatically created when the BE is seeder is run.

email: admin@example.com
password: password

Authentication process is done by receiving a token from the BE and saving that token for 24hours (can be updated in the src/config/index.ts) in the cookie storage.

The token in turn used to access the neccessary routes as aside the 'login' route, all other routes are protected.

Products

There are a total of four(4) products view

  • Home Page (lists all products along with paginatin, search and categories filter)
  • Details Page (shows details of the product, admin delete product from here after confirmation)
  • Edit Page (update the product's details)
  • Create Page (create a new product)

Product Fields

  • Image
  • Name
  • Category (Selected from a list of categories saved on the DB)
  • Quantity
  • Price
  • Description

Features available for Products

  • Create Product
  • Update Product
  • View single product
  • Delete Product
  • Fetch all Product and filter by searchKeys and/or category

Key Tools used