Skip to content

A simple UI to view, delete, and update a set of application users.

Notifications You must be signed in to change notification settings

LeslieWilson/ky_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kyruus Front End Interview

This repository contains the outline of a React front end web application. Please review the problem statement below and feel free to ask any clarifying questions.

Please spend some focused time, but no more than 4 hours, designing & building a solution to the problem below. Please treat it as if it were a new production system you were developing at work. When you finish, please send your code back to Kyruus for us to review in advance of your interview day.

When you arrive at Kyruus for your interview, please be prepared to discuss your work with members of the engineering team.

Problem statement

We would like to build a simple UI to view, delete, and update a set of application users.

Requirements

The user of the application should be able to

  • View a list of users
  • Delete a user
  • Add a user
  • Update a user name and e-mail

User API spec

The User API adheres to the following API spec:

User Object

{
  id: "string",
  name: "string",
  email: "email"
}

Endpoints

  • GET /users returns { users: [ { array of user objects ]}
  • GET /users/:id returns a user object
  • POST /users accepts { name: 'string', email: 'string'}, returns a user object with an id
  • DELETE /users/:id returns { success: true/false }
  • PATCH /users/:id returns { }

Getting started

This repository contains a react app that is bundled with webpack and is served with a built in development server. The public/index.html already includes and mounts the react component in src/App.js.

Prerequisites

Set Up

First install the dependencies.

$ npm install

Then run the development server.

$ npm start

Start editing App.js! The development server will rebuild and deploy automatically.

Run the back end server.

$ npm run server

Tests are scaffolded using Jest and jsdom. Feel free to install other testing frameworks if desired. Run the tests.

$ npm test

Extra Questions

  • If the endpoint required authentication, how would you consider implementing this?
  • What if we wanted the UI to update based on changes from the server?

About

A simple UI to view, delete, and update a set of application users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published