jessicaevans17 / assignments

This is my homework for the test drive course
0 stars 0 forks source link

week 06 - day 02 - Employee Database - #28

Closed jessicaevans17 closed 5 years ago

jessicaevans17 commented 5 years ago

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

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/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,
}
jessicaevans17 commented 5 years ago

https://github.com/jessicaevans17/empolyee-database

Still working on getting the add employee page to work.