Skip to content

Arnesh997/customer-loyality-progream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Technical Test for AIMEGroup

System requirements

You’ll want to ensure you have the following already installed on your local machine before getting started with the test:

  • Node 12+: The current LTS (long-term support) release. We like to use a Node Version Manager like NVM.
  • NPM 6+ or Yarn: Both of these package managers have ups and downs, choose whichever you prefer. Follow the installation instructions for Yarn or NPM to make sure you're using the latest version.

Setup Instructions

  1. Clone this repository
  2. Type the following command to install the dependencies and run the project
npm install && npm start

Task Instructions

  1. Tech Stack to use

  2. Get started

    • Signup on Hausra
    • Create a new project and connect Heroku database.
    • Create a table, customers, add columns, id(primary key), name, email, and role and city_id (F_KEY).
    • Create another table, cities, add columns, id(primary key), name.
    • Add foreign key relationship betweek cities and customers where city_id is foreign key in customers table.
    • Create a simple, single page using the Chakra UI table component.
  3. UI Design

    • There is not much preference on UI, simple UI will be fine.
  4. Functional Requirements

    • Read from the customers table created earlier in the Hasura
    • In the table, display, name, email, role and city of the customer.
    • Add new record button to open popup and take input ( user can add, edit name, role, email and can select city from dropdown which is populated from the cities table)
    • Be able to add new record
    • Edit Existing Records
    • Delete record
    • There should be a loader/spinner whenever an operation is being performed
    • There should be a confirm popup when deleting the record

Browser Support

We expect the solution to work in the latest version of Chrome

Acceptance criteria

We have a high focus on attention to details in code

  • Solution should be written in Reactjs
  • Chakra UI should be used
  • The formatting of the codebase should be consistent and written in a modular approach
  • We expect the codebase to be written using ES6+ and libraries kept to a minimum
  • We expect the code to be included in the relevant files
  • No other CSS framework allowed

Tips

Use linting to format the code and autofix most of the formatting issues

npm run lint

About

Hack The Burgh IX Sainsbury's Bank Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.7%
  • TypeScript 6.0%
  • HTML 2.8%
  • CSS 1.5%