# koa-blog-server **Repository Path**: qinchaobin/koa-blog-server ## Basic Information - **Project Name**: koa-blog-server - **Description**: koa2 + mysql 搭建的博客后台接口 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-29 - **Last Updated**: 2023-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # koa-blog-server ## 项目介绍 koa2 + mysql 搭建的博客后台接口 ## 项目运行环境 ``` node v18.17.1 mysql v.5.7.32 ``` ## 安装依赖 ``` npm install # or pnpm install # or yarn install ``` ## 安装启动服务服务工具 用于监听node项目相关文件修改时,实时更新代码,无需重启服务。 ``` npm i -g nodemon ``` ## 启动项目 启动项目之前确保以安装mysql并已启动,mysql数据库已经创建,并且已经创建了数据库表, 数据表可查看项目根目录下blog.sql文件。 ``` nodemon app.js ``` ## 项目启动后,访问测试地址 ``` http://localhost:3000/api/test ```