kernsjn / assignments

0 stars 0 forks source link

week 06 - day 03 - Who works here? - #20

Closed kernsjn closed 4 years ago

kernsjn commented 4 years ago

Who works here?

Over the last six weeks, you have learned many concepts about front-end development. To demonstrate how far you have come, I want you to build an Employee Directory. For Explorer Mode, this will be a site with three pages; view all employees, add an employee, and view an employee. Adventure Mode adds the features to delete and updating an employee.

Objectives

Requirements

Explorer Mode

Adventure Mode

Epic Mode

Additional Resources

TIPS:

How to use the API

API Documentations: https://sdg-staff-directory-app.herokuapp.com/index.html

https://sdg-staff-directory-app.herokuapp.com/api/honeydukes/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

https://sdg-staff-directory-app.herokuapp.com/api/honeydukes/employees/3

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

https://sdg-staff-directory-app.herokuapp.com/api/honeydukes/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,
}

Preview.

kernsjn commented 4 years ago

https://github.com/kernsjn/employee-database