# credit-score **Repository Path**: jianzeng-group/credit-score ## Basic Information - **Project Name**: credit-score - **Description**: 信用分 - **Primary Language**: JavaScript - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2024-03-15 - **Last Updated**: 2025-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 西湖分 ## 项目主要技术 1. Nuxt3:基于Vue的开源框架 https://nuxt.com/docs/getting-started/installation 2. vue:https://cn.vuejs.org/guide/introduction.html 3. Element-plus:Vue UI框架 https://element-plus.gitee.io/zh-CN/component/button.html 4. Pinia:状态管理插件 https://pinia.vuejs.org/zh/ 5. Vueuse:js库 https://vueuse.org/?utm_source=nuxt.com&utm_medium=aside-module&utm_campaign=nuxt.com 6. echarts:图表插件 https://echarts.apache.org/zh/index.html 7. nuxt-svgo:svg插件 https://nuxt.com/modules/nuxt-svgo 8. pm2:项目部署插件 https://pm2.keymetrics.io/docs/usage/quick-start/ ## 目录结构 ``` root |---assets 资源目录 |---components 组件目录 |---composables 自动导入工具目录 |---layouts 页面布局目录 |---pages 页面目录 |---plugins 插件目录 |---public 静态资源目录 |---store 全局转态管理目录,pinia插件使用 |---types ts 类型文件 |---nuxt.config.ts Nuxt项目配置文件 |---app.config.ts 配置文件 |---app.vue Vue项目主文件 ``` ## Setup Make sure to install the dependencies: ```bash # npm npm install # pnpm pnpm install # yarn yarn install # bun bun install ``` ## Development Server Start the development server on `http://localhost:3000`: ```bash # npm npm run dev # pnpm pnpm run dev # yarn yarn dev # bun bun run dev ``` ## Production Build the application for production: ```bash # npm npm run build # pnpm pnpm run build # yarn yarn build # bun bun run build ``` Locally preview production build: ```bash # npm npm run preview # pnpm pnpm run preview # yarn yarn preview # bun bun run preview ``` ## 部署 1. 修改配置文件 `app.config.ts` 主要修改接口地址`baseURL` 资源地址`resURL` 2. 将项目打包(本地安装nodejs V18+) `npm run build` 产出 .output目录。然后将.output目录和ecosystem.config.cjs文件打包发到服务器。 3. 将项目打包发到服务上后,服务器也要安装nodejs V18+ 4. 启动项目,先安装node程序管理插件 `npm install pm2` 安装完后启动 `pm2 start ecosystem.config.cjs`