# 个人博客API **Repository Path**: OSABC/BlogAPI ## Basic Information - **Project Name**: 个人博客API - **Description**: 博客API - **Primary Language**: NodeJS - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2021-02-23 - **Last Updated**: 2021-03-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 个人博客API #### 介绍 ABCBlog_博客API接口. #### 部署 1. CentOS8.0操作系统 2. 安装node最新版本 3. 部署应用 ``` (1)下载源码 (2)修改配置:Mysql地址 (3)安装依赖包:npm install (4)安装pm2: npm install -g pm2 (5)通过pm2启动应用:pm2 start index.js ``` #### 在线演示地址 http://blogapi.zhangqx.com/bloglist #### 接口列表 | 接口名称 | 描述 | 备注 | | :----- |:-----|----- | | [bloglist](docs/bloglist.md) | 获取博客列表 | 测试用 | | [bloglistformysql](docs/bloglistformysql.md) | 从数据库获取博客列表数据 | 测试用 | #### 如何参与贡献 1. Fork 本仓库 ``` git clone ********** cd BlogAPI git remote add upstream git@gitee.com:OSABC/BlogAPI.git ``` 2. 新建 Feat_xxx 分支 ``` git checkout -b branch-name ``` 3. 提交代码 ``` git add . git commit -m "fix: add license headers (#264)" git fetch upstream master git rebase upstream/master git push -f origin branch-name ``` 4. 新建 Pull Request 5· PR被成功接收后,执行以下操作 ``` git push origin --delete branch-name git checkout master -f git branch -D my-fix-branch git pull --ff upstream master ```