Simple Dashboard app build with Nextjs + Typescript + @Redux/toolkit + tailwind and some more. See live demo here nextjs-dashboard-app.
This project is intended as a private playground to explore more about Frontend techstacks and tools and its compatibility to each other. I made this project to also for trying new things and research some new FE technology in the future.
root
└── _src
├── __tests__
| |
| ├── _components
| | └── _Button.spec.tsx
| |
| └── _features
| └── _UserList
| ├── __snapshots__
| |
| └── UserList.spec.tsx
|
├── _api
| └───── _user
| ├── _index.ts
| └── _models.ts
|
├── _components
| └── _Button
| └── _component.tsx
|
├── _features
| └── _UserList
| ├── _components
| | ├── _filter.tsx
| | └── _columns.tsx
| ├── _View.tsx
| └── _ViewModel.ts
|
├── _hooks
|
├── _pages
| └── _UserList/[id]/[...slug].tsx
|
├── _store
| └── _slices
| ├── _filter.ts
| └── _users.ts
|
├── _styles
|
└── _utils
Requirements:
// consider using nvm to manage your node version
node v16.17.0
yarn v1.22.19
npm v8.15.0
Installation:
// run this command to start run the project:
yarn install
yarn dev
Set your .env variables:
NEXT_PUBLIC_API_URL=https://randomuser.me/api/
NEXT_PUBLIC_API_SEED=8613232dc211323c
If something wrong happened and can't run the project, try this steps:
.next
folder in root folder.node_modules
folder.There is several command that you might need to know to run some features in this project
yarn test
yarn build
yarn lint
yarn lint:fix
yarn prepare
If there is trouble of your test case failing or you can't commit your changes, it might be caused by unmatched snapshots. try run this command to update the test snapshots:
// to update test __snapshots__
yarn test -u
// re-run git commit if needed
git commit -m "<action_type_here>(<changes_type_here>): <commit_comment_here>"
Project is: in progress
After reviewing the project there is several things that can be improved, here's what can be improved next:
Room for improvement:
To do:
Created by @fuadbaskara - contact me on linkedin!