This project is built with Vite + React + Typescript.
- Node v16
- Ant Design v4.24.0
- React Router
Library for routing in React application and heart of our navigation system - @tanstack-query
Data-fetching library and it makesfetching
,caching
,synchronizing and updating server state
in your React applications a breeze. - react-i18next
Library fori18n
in React application - VSCode with
Prettier
Plugin - VSCode with
ESLint
Plugin - Turn On
Format on Save
in VSCode Setting
.
├── public/
│ ├── images/
│ │ ├── coming-soon.svg
│ │ ├── launcpad.svg
│ │ └── etc.png
│ │
│ └── locales/
│ ├── en/
│ │ └── translation.json
│ └── id/
│ └── translation.json
│
├── src
│ ├── __mocks__/
│ │ └── react-i18next.ts
│ │
│ ├── __tests__/
│ │ └── root.test.ts
│ │
│ ├── components/
│ │ ├── application-mode/
│ │ │ ├── application-mode.tsx
│ │ │ └── application-mode.less
│ │ └── change-language/
│ │ ├── change-language.test.tsx
│ │ └── change-language.tsx
│ │
│ ├── constants/
│ │ ├── endpoint.constant.ts
│ │ ├── environment.constant.ts
│ │ ├── label.constant.ts
│ │ ├── message.constant.ts
│ │ └── placeholder.constant.ts
│ │
│ ├── contexts/
│ │ ├── app/
│ │ │ ├── app.context.tsx
│ │ │ └── use-app.tsx
│ │ └── app/
│ │ ├── auth.action.ts
│ │ ├── auth.context.tsx
│ │ ├── auth.store.ts
│ │ └── use-auth.tsx
│ ├── hooks/
│ │ └── use-interval.ts
│ │
│ ├── initializers/
│ │ ├── auth-initializer.ts
│ │ └── i18n-initializer.ts
│ │
│ ├── models/
│ │ ├── user.model.ts
│ │ └── post.model.ts
│ │
│ ├── pages/
│ │ ├── dashboard/
│ │ │ └── dashboard.tsx
│ │ └── posts/
│ │ │ ├── form/
│ │ │ │ └── post-form.tsx
│ │ │ ├── shared/
│ │ │ │ ├── components/
│ │ │ │ │ └── post-headers-filter.tsx
│ │ │ │ └── hooks/
│ │ │ │ ├── use-posts.mutation.ts
│ │ │ │ └── use-posts.query.ts
│ │ │ └── posts.tsx
│ │ └── root.tsx
│ │
│ ├── services/
│ │ └── api.service.ts
│ │
│ ├── styles/
│ │ └── style.less
│ │
│ ├── utils/
│ │ ├── __tests__/
│ │ │ └── jwt-helper.test.ts
│ │ ├── auth.util.ts
│ │ ├── date.util.ts
│ │ └── storage.util.ts
│ │
│ ├── main.tsx
│ └── routes.tsx
│
└── index.html
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/{page_name}.tsx
.
The page auto-updates as you edit the file.
Launches the test runner in the interactive watch mode.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
Preview your build result in local environment.
Open http://localhost:3001 with your browser to see the result.
Format all files with Prettier.
To learn React, check out the React documentation.