There are two projects. One is UI “next-detail”, one for API “demo”.
next-detail Script:
- Cd backend
- Npm install
- Npm start
demo Script :
- Cd demo
- mvn install
- start DemoApplication in your own idea
Browser open: http://localhost:3000/, you will see all the data show in table.
What could change:
- First lots of data, can do paging. The API will include the offset, so data transfer will take less time. And the UI side, will add pagination function.
- Second Auth function. Can do Jwt to auth.
- Data search function. If without pagination, can do in UI side only. If not, can add filter into search API.
- And now, the UI is ugly, the position is wrong. Table header can be fixed position.
- Table row can be in component, add key help skip render time if data change in future.