# blog-nuxt **Repository Path**: vinson007/blog-nuxt ## Basic Information - **Project Name**: blog-nuxt - **Description**: 个人博客前台,使用了nuxt3 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://sylvan.sylu.cc/ - **GVP Project**: No ## Statistics - **Stars**: 16 - **Forks**: 10 - **Created**: 2023-02-21 - **Last Updated**: 2025-06-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: nuxt3, TypeScript, 博客 ## README # 个人博客前台 ## 在线地址 - 前台:https://sylvan.sylu.cc/ - 后台:https://sylvan.zabc.net/index - 截图

## 前台项目 > 欢迎大家提交pr,一起改进项目 - Github 地址:https://github.com/Vinson07/blog-nuxt - Gitee 地址:https://gitee.com/vinson007/blog-nuxt ## 特别鸣谢项目: ### 后台项目 - Github 地址:https://github.com/ttkican/Blog - Gitee 地址:https://gitee.com/wu_shengdong/blog ### Sakura主题 - 网址:https://lixingyong.com/ ## 项目架构 - nuxt3:https://nuxt.com/ - ts - pinia:https://pinia.web3doc.top/ - vueuse:https://vueuse.org/ - tailwind:https://tailwindcss.com/docs/installation - NaiveUI:https://www.naiveui.com/ - device(判断使用设备):https://nuxt.com/modules/device - nuxt-icon(图标):https://nuxt.com/modules/icon ## 使用建议 - 因为项目使用eslint, 所以建议使用编辑器 vscode 下载插件 ESLint Prettier - 因为项目使用husky,提交git会自动格式化代码,如果eslint不通过是提交不上去的 - 保存自动格式化,不喜欢的可以在.vscode目录下setting.json修改 ## 配置主题样式 - `tailwind.config.ts`文件中可配置主题颜色 - `app.vue`文件中可以配置`naive-ui`主题颜色 ## git commit message - feat - 新功能 feature - fix - 修复 bug - docs - 文档注释 - style - 代码格式(不影响代码运行的变动) - refactor - 重构、优化(既不增加新功能,也不是修复bug) - perf - 性能优化 - test - 增加测试 - chore - 构建过程或辅助工具的变动 - revert - 回退 - build - 打包 ## 启动项目 ```shell # node 版本 v18 #首先全局安装pnpm npm install pnpm -g #安装依赖 pnpm install # 环境变量(如切换接口) - .env.dev 开发环境 - .env.prod 生产环境 # 本地运行 pnpm dev # 打包分析 pnpm analyze # 打包 pnpm build ```