Developed as an exercise using React, this is a simple list of employees, each editable
Here's a screenshot of the main page
- node.js version >=
4.0.x
- Clone the repository
- Run
npm install
in the root of the repository
- Run
npm run local
- The API will be available at
http://localhost:3000/employees
GET
:/employees
- Returns an array of all employees
POST
:/employees
- Add a new employee
- Request body should be an employee object (see src/db/employee-data.json for example)
PATCH
:/employees/{id}
- Edit an employees details
DELETE
:/employees/{id}
- Delete an employee