这是我为我父亲公司所构建的一个 CRM 系统的前端部分。为了确保系统和数据的安全,我有意删除了大部分后端代码。该仓库是我个人作品集的其中之一,我会尽我最大的努力保持该版本的更新 This application requires node 18+, please make sure that you have a relatively new node version
!! There is something you have to know before you make your first step. This is a frontend version which is extracted after I finished the application, and most frontend code has been integrated tightly with my backend while you don't have backend in this repo, so currently, I'm trying to put some mock data on it so that this version can get rid of file not found errors. This takes some time. If you don't want to wait, you can open the mock folder and match them to its corresponding components or fill some data by yourself. I'll try my best to solve this problem ASAP.
First, install all the dependencies:
npm install
# or
yarn install
# or
bun install
Second, run the dev server
npm run dev
# or
yarn dev
# or
bun run dev
Then you can open it by visiting localhost:3000 in your browser (if there's no exception)
1. Next.js:I use next to do fullstack development for this application, using server action to implement backend.
2. TailwindCSS + shadCN
shadcn UI is widely used in this application, especially for building form and modals. I also extended some components like tree-structure lists and did some encapsulation of form items with full typescript support which you can find it and even more in the components folder
3. Zustand
Really a light-weight state management package, having similar experience compared to pinia (I think so personally). Recommend you guys to have to try.
For more detailed package information, check package.json. 🌟 Star if you like this. Thank you very much.