LivCunningham / assignments

sdg assignments
0 stars 0 forks source link

week 06 - day 04 - Who works here? #24

Closed mdewey closed 5 years ago

mdewey commented 5 years ago

Who works here?

Over the last 6 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 3 pages; view all employees, add an employee, and view an employee. Adventure Mode adds 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/swagger/index.html

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

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.

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,
}

Preview.

LivCunningham commented 5 years ago

To https://github.com/LivCunningham/twerktwerktwerk.git

mdewey commented 5 years ago

I would like to see the employee page be built.

LivCunningham commented 5 years ago

https://github.com/LivCunningham/twerktwerktwerk.git

I am closing this for the moment but I aim to add styling before progress reports tomorrow.

The form is functional. The all employees page (with your amazing help) links to the singles page, that lists added employee details and a "Fire Me" button that deletes (still buggy) but will adjust.

mdewey commented 5 years ago

Your homework was marked: Meets Expectations

Well done!

“Well done!” — via Gavin Stark