GithubHelp home page GithubHelp logo

mallorysmith64 / employee-database Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.34 MB

Home Page: https://employee-database-mallorysmith64.netlify.com

License: MIT License

HTML 22.97% JavaScript 74.47% CSS 2.56%
employee-page webdevelopment

employee-database's Introduction

Employee Database

Who works here? Over the last 6 weeks, you have learn many concepts about front-end development. To demostrate how far you have come, I want you to build an Employee Directory. For Explorer Mode, this will be a site with 3 pages; view all employees, add an employee, and view an employee. Adventure Mode adds delete and updating an employee.

Objectives

  • Use react-router-dom to build a multiple page SPA
  • Create an API driven UI
  • Practice the skills you have learned the past 6 weeks.
  • practice wireframing a new app

Requirements

  • Create a new gamma stack project
  • Add react-router-dom and set up 3 pages
  • This this api to manage a company's list of employees. Check out Additional Resources for how to use the API.
  • Create a relatively unique name for your company. You will use this as your company key when calling the endpoints of the API

Explorer Mode: Create a react app with 3 pages and navigation between the pages.

  1. View All Employees page
  1. An Employee Page
  1. Add a Employee Page This should allow the usre to add all of the fields for an employee. The UI should let the user know that the person was added to the API successfully Your app should be styled and responsive. Have fun with it. Deploy your app

Adventure Mode:

  • Add the ability to delete a user
  • Add the ability to update a user

Epic Mode:

  • You app current only works for one company, but now add the ability to change companies.

How to use the API API Documentations: https://sdg-staff-directory-app.herokuapp.com/index.html

The use the API, you will need to name your company for which you are making an employee directory. This will serve as the unique key for your company. My fake company is called fakebook. That means that I want to make an API call to get all of my employees, I will do a fetch to the url. https://sdg-staff-directory-app.herokuapp.com/api/fakebook/employees That will return me a list of employees that are apart of the company

If I want to get a different company's (Boogle) employees. I would do

https://sdg-staff-directory-app.herokuapp.com/api/Boogle/employees For your project you will be using the same company for every request

To get an employee for that company, you will use the endpoint to get an employee. For me to get an employee of fakebook I would use the endpoint https://sdg-staff-directory-app.herokuapp.com/api/fakebook/employees/3

A GET request to the above url, will get the employee with the id of 3,and that works for fakebook.

To create an employee for a company, you will have to use the POST endpoint. If I wanted to add an employee for fakebook, I will send a POST request this endpoint https://sdg-staff-directory-app.herokuapp.com/api/fakebook/employees/ with my data in this JSON format:

"firstName": "string", "lastName": "string", "birthday": "2019-06-06T16:48:57.256Z", "hiredDate": "2019-06-06T16:48:57.256Z", "isFullTime": true, "profileImage": "string", "jobTitle": "string", "jobDescription": "string", "phoneNumber": "string", "address": "string", "city": "string", "zip": "string", "state": "string", "salary": 0, "gender": "string", "email": "string", "emergencyContactPerson": "string", "emergencyContactPhone": "string", "emergencyContactAddress": "string", "ptoHours": 0, }

employee-database's People

Contributors

mallorysmith64 avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

James Cloos 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.