View on GitHub

employee-list-react

This is demo for employee list, which also deploy to heroku. This project uses react, redux and thunk

Table of Content

Welcome to my React + Redux + Redux-Thunk demo

1. Quick Start

To run the app from heroku, Click Heroku deployment

To run the same on AWS S3, Click S3 Deployment

See the application in action, run it on StackBlitz

stackblitz

2. Main Feature

This is a sample employee list page, with sort and search features

The home page shows a list of employees

home page

You can click “Sort by” drop-down, to sort the list.

Sort

You can also search the employees based on the current sort by field. e,g the screen below will return all employees whose last name contains “an”

enter image description here

Click on one of the employee, will pop up the details of this employee.

enter image description here

3. Design diagram

This web page contains two part:

  1. Front-end react.js app - React + Redux + Redux-Thunk
  2. Restful web server - use json-server to fake a restful web server. Data is stored in json file (in a real production environment, it would be kept in a database)

See below shows the diagram. enter image description here

4. Run the application

Run from the cloud

Restful Web Server - https://employee-list-api.herokuapp.com/

you can view the restful web service from browser

Restful web service

Click /companyInfo will return a json object which contains company details

companyInfo

Click /employees will return a json object which contains employee list employees

Front-end react app

I have published the site to heroku, which can be found on http://employee-list-react.herokuapp.com/

I have also publised it on AWS S3, which can be found on http://employee-list-react.s3-website-ap-southeast-2.amazonaws.com