Skip to content

Keeping track on employees is no joke. In this Simpsons themed employee tracker, we utilize React to provide an easeful online experience to search employees by name and sort by name in ascending and descending order.

Notifications You must be signed in to change notification settings

GCaplan777/ReactEmpTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Employee Tracker

Description

Keeping track of employees is no joke, and as we've seen in our favorite tv show, "The Simpsons" (at least the "classic era"), management needs the latest in online rosters to search and sort their workers by name.

View the Gitbhub repository:
https://github.com/GCaplan777/ReactEmpTracker
View the deployed app on Heroku:
https://reacttracker.herokuapp.com/

Table of Contents

Installation

With access to Node.js, you can open your terminal and run: "$npm init" to create your package-lock.json. If already there from a fork of my repo, simply run "$npm install". To use Eat-Da-Burger web application application from your local environment, you must accomplish the following steps below:

Step 1 - Clone my repo using the command line below.

git clone https://github.com/GCaplan777/ReactEmpTracker.git

Step 2 - Change directory to the cloned repo folder.

cd ReactEmpTracker

Step 3 - Install all required NPM packages.

npx create-react-app ReactEmpTracker. ***Here you may want to first delete the "src" folder from your React app. Go into the cloned repo, and copy and paste the src folder from the cloned repo into your React app.

Step 4 - Start the application server using the command line below

npm run start

Usage

Node.js, React.js, Heroku, Github

License

License Copyright: Unknown.
https://opensource.org/licenses/MIT

Contributing

https://github.com/kao-ring

Tests

All test requirements met.

Questions

https://github.com/gcaplan777

[email protected]

DEMOS

Gif!

ezgif com-video-to-gif



Screenshots

In App.js, our handleInputChange listened for letters typed into the search bar. A variable was created to filter the results, comparing the letter typed with letters in the our compared object, "Employee" by name. We then reset the state.

Screen Shot 2020-08-31 at 1 24 24 AM



In App.JS, line 9, a second property for state "order" was set to ascending. That away, when "name" is clicked, we are listening and rendering ascending or descending based on the state. As we are in ascending to start, the first click will put us in ascending order, and also reset the state to descending, so that the next click received will use the descending funciton in our "if/ if else" statement. Our state is our switch back and forth.



Screen Shot 2020-08-31 at 1 24 39 AM



In TableBody.js, we're receiveing the props being rendered in the App.js file. Screen Shot 2020-08-31 at 1 24 52 AM

About

Keeping track on employees is no joke. In this Simpsons themed employee tracker, we utilize React to provide an easeful online experience to search employees by name and sort by name in ascending and descending order.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published