I created this template for my customer who have specific requirement to using Next, Tailwind and Ant Design together. But after I think for a while this template should be public for everyone. I'm open mind to improve my knowledge, you can pull-request. I hope this template could help someone who facing the same requirement as me.
- Clone the repository
- Follow the detailed documentation for setup and customization.
- Start building your awesome project!
- Ant Design
- TailwindCSS with
tw-prefix. - AnimateCSS
- MomentJs
- Zustand
- SocketIO
- Axios
- React Icons
- Jest
- SCSS
- TypeScript
__mocks__for storing mocking data.__tests__for storing test files.src-
actionsThis directory containing the function which doing the application actions. The application action defined the function which changing the state or request to the server. For example, login, change password and etc. -
componentsThis directory containing the React components. The component must be reusable and not strict to the context. For example, card, timeline item and etc. -
constantsFor storing application constants. -
functionsYou may confuse between theactionsdirectory. The key difference isfunctionscontain the function for computing and dealing the business logic without changing the application states. For example, the login action might be request to the server then got the user response and storing to the state. But for thefunctions, let's say we have the logic to project the data to the chart. We might named the function toconvertToLineChart, this function is not changing the application state it receiving the data then output into desire format. -
hooksFor storing React hooks. -
libFor importing and customizing libraries. -
pagesFor storing Next page files. -
storeFor storing Zustand store filesinterfacesFor storing store slice interfaces.slicesFor storing store slices.
-
stylesFor storing cascading style sheet files -
typesFor storing application types and interfaces. The difference fromstore/interfacesis store interface is for Zustand slice interface only but this directory is for whole application types. -
utilFor sharing utility functions. -
viewsReact component for holding business context and compositing application components.
-
This project is licensed under the MIT License.
We strive to keep this template up-to-date with the latest technologies and best practices.
If you find this template helpful, don't forget to โญ๏ธ it!