Coder Social home page Coder Social logo

staffdirectory's Introduction

Staff Directory

Staff Directory

A simple app to help you sort through your employees by name

Table of Contents

Technologies_Used

  • HTML
  • CSS
  • React js
  • github pages

Deployed Site

ClickClick!

Features

1. A Table of Employees

In order to get a table of employees I first had to call the employees with an axios call. In order to get the promise structure correct and to get it write everything out I had to use componentdidMount that looped through the and then follow it up with setStcate.

ComponentDidMount

Then this is followed up later by a render table which calls out the previously named stuff and puts it in a neat little table.

Table

2. A search Area

In order to search an area I built a handlesearch function that looks for what is being typed in and compares to the data in the fields. Then, I wrote - <input className="form-control" type="search" placeholder="search"onChange={event => this.handleSearch(event)}/> To be called as part of the JSX.

3. To Be Added Later: A sortable Table

I was unable to sort my search by ascending/descending or alphabetical order. I was able to get my project to sort by age though. To be frank, I did a lot of research and found myself unable to commit to one way of doing it. But let me run down the top options:

  1. I found a great article on column sorting, Link which seems to take the work out of it for you. It has a long column and basically shows how to feed the data in and get every single column to sort at the same time. Seems like a no-brainer but, I got a little stuck on how to make the classes/functions work together (as classes are my biggest nemesis in coding). I tried 3 ways different and swiftly went back to original code.

  2. Write sort function - I do have a fantastic sort function but -it feels like it's missing something. not quite sure but when I try to use it the same way I made the search function work it falls apart. I left it in, because in the same way that classes are something I have to befriend, functions are old friends. I tried building my sorts out in a special data land but like the search functions they seemed to migrate.

Usage

How do you use this project? This is meant for anyone looking for a more structured approach to exercise and working out. If you are looking to keep an easy to manage website

Author

Rachael Kelm-Southworth

Credits

I would like to thank Kerwin, Manuel, Roger, Jerome and all my classmates for helping me understand this subject matter and anyone that contributed to make the base code.

License

MIT

staffdirectory's People

Contributors

rksouth 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.