/react-employee-directory

Employee directory with React.

Primary LanguageJavaScriptMIT LicenseMIT

React_EmployeeDirectory

Overview

Unit 19 React Homework: Employee Directory

For this assignment, I've created an employee directory with React by breaking the application's UI into separate components to manage component state, and respond to user events.

Using the Random User API, when a user loads the page, a table of employees is also rendered on the page. The user is able to sort the table by multiple categories, and filter the users by multiple properties.

This application was bootstrapped with Create-React-App and is deployed on GitHub Pages:

Application Deployed on gh-pages: React Employee Directory

React Employee Directory gh-pages Repo

React Employee Directory Repo

Table of Contents

User Story

As a user, I want to be able to view my entire employee directory at once so that I have quick access to their information.

Business Context

An employee or manager would benefit greatly from being able to view non-sensitive data about other employees. It would be particularly helpful to be able to filter employees by name.

Mock Up

Installation

Node.Js is required to install this application.

Ajax is the preferred method for making API calls.

JSON is the default format for data transmission.

Refer to Random User Generator API documentation for more information on generating random user data.

Fork or Clone Repository, then run the following commands:

npx i create-react-app.js

npm i boostrap css-framework.

npm i axios HTTP client for the browser and node.js.

Usage

npm start Runs the app in the development mode. Open http://localhost:3000to view it in the browser.

npm test Launches the test runner in the interactive watch mode. See the section about running tests for more information.

npm run build Builds the app for production to the build folder.

npm run eject This command will remove the single build dependency from your project.

Deployment

Application Deployed on gh-pages: React Employee Directory

gh-pages branch used to host deployed application:Employee Directory

main codebase pushed to Github: react-employee-directory-main)

Acceptance Criteria

Given a table of random users generated from the Random User API, when the user loads the page, a table of employees should render.

The user is be able to:

  • Sort the table by at least one category

  • Filter the users by at least one property.

  • Codebase pushed to GitHub NOT deployed code.

  • gh-pages branch used to host the deployed application's code.

Resources

Create React App documentation.

React documentation.

Code Splitting

Analyzing the Bundle Size

Making a Progressive Web App

Advanced Configuration

Deployment

npm run build fails to minify

This section has moved here

Submitted for Review

You are required to submit the following:

  • the URL to the deployed application

  • the URL to the Github repository

Questions

GitHub Profile

License

MIT LICENSE