Giter VIP home page Giter VIP logo

employee-directory's Introduction

Employee Directory

A CMS solution that allows users to view a list of pseudo-employees, search by name, and sort by last name.

Description

This website utilizes React to dynamically display pseudo-employee data. Users can view 100 "employees" from the Random User API, which can then be searched and sorted. As users input a query into the search bar at the top of the page, the pseudo-employee list changes to display only the pseudo-employees who match the search criteria. Deleting all text in the search bar results in the original list being displayed. By clicking the "Name" button in the table header, users can sort pseudo-employees by last name (A–Z and Z–A, with A–Z as the default).

This website was very challenging for me to create, and I learned a lot in the process. One of the most difficult parts was understanding how to ensure everything was connected (i.e. all components received all necessary props to function correctly). React certainly has a bit of a learning curve, but I was eventually able to better understand how each file of JavaScript code relates to the others.

I used a lot of array methods in this website, including .map(), .filter(), and even .flat(). I had never heard of using .flat() before, but through my research I realized that it was an excellent solution in making sure that there are no nested arrays (and thus, inaccessible properties) when displaying the list of pseudo-employees.

An additional challenge for me was debugging errors in which the code failed to compile on my local computer. I tend to use console.log within JavaScript files to get a better idea of why unexpected behavior is happening, but if nothing compiled, I didn't have that ability. It was a great challenge in thinking logically and using my JavaScript knowledge base.

A few ideas for future development include:

  • Adding additional sorting functionality
  • Adding additional search functionality
  • Adding more CSS/custom styling to the page

Technologies Used

  • HTML5
  • CSS3
  • JavaScript
  • React JS and JSX
  • Moment.js

Table of Contents

Installation

The application can be viewed live on GitHub Pages here: https://vruss14.github.io/employee-directory/

Alternatively, the application can be cloned and run locally at port 3000. Navigate to the correct directory and run npm start in the command line to do so.

A view of the home page:

homepage

A view of the website's functionality:

websitegif

Usage

This application is only intended to view, sort, and filter a list of pseudo-employees.

License

This project has not yet been licensed, and thus, standard copyright laws apply.

Contributing

Valerie Russell is the sole contributor to this project.

Tests

There are currently no tests written for this project.

Questions

If you have any questions about this application my GitHub username is vruss14 and you can view my GitHub profile at https://github.com/vruss14.

If you have additional questions, feel free to reach out to me at [email protected].

employee-directory's People

Contributors

vruss14 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.