The Employee-Web-App can was created as a client application using using this API: http://dummy.restapiexample.com/.
The Employee-Web-App is a frontend component.
- Get all employees.
- Search the employees list using employee name.
- Sort the employees list using either name or salary.
- View single employee details
- Update the employee salary
- Register new employee
Make sure you have installed all of the following prerequisites on your development machine:
-
Git - Download & Install Git. MacOS and Linux machines typically have this already installed.
-
Node.js - Download & Install Node.js and the npm package manager. Make sure to get the latest active LTS version.
-
Download the Employee-Web-App from this link or use
git clone git@github.com:Babanila/Employee-Web-App.git
. -
A web browser (
e.g. Google Chrome, Mozila, Firefox e.t.c
).
Note: Start the backend server before starting the frontend-react-app (See above for details)
- Open another computer terminal (
command-line interface
). - Locate the downloaded Employee-Web-App folder.
- Change the directory to the Employee-Web-App folder(e.g
cd Employee-Web-App
). - Run
npm install
. - Run
npm start
.
To run Employee-Web-App, follow the steps below.
- After starting the app.
- Enter the localhost address using port 8080 (
e.g http://localhost:8080
) - Type your search parameter into the input search bar in the top right corner on the page.
- Click the search button.
- Viewc the result etc.
- Run
npm test