# dragon-qiusuo **Repository Path**: si_jie/dragon-qiusuo ## Basic Information - **Project Name**: dragon-qiusuo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: dragon-qiusuo - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-02-10 - **Last Updated**: 2022-02-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 前端: 环境 vue.js 登录注册接口已经测试完成 后端文件中更改了数据库(用于测试),配置了跨域实现(便于本地测试) # 启动项目 cd frontend npm install npm run serve ---- ### 2022.1.13 添加代码规范文件 | [.eslintrc.js](https://gitee.com/wrz0318/qiusuo/blob/dev/frontend/.eslintrc.js) | [.htmlhintrc](https://gitee.com/wrz0318/qiusuo/blob/dev/frontend/.htmlhintrc) | [.stylelintrc](https://gitee.com/wrz0318/qiusuo/blob/dev/frontend/.stylelintrc) | | ---- | ---- | ---- | 在 `package.json` 里添加了5个脚本 * `"stylelint": "stylelint src/css/*.* --fix"` * `"htmlhint": "htmlhint **.html"` * `"eslint": "eslint src/**/*.js src/**/*.vue"` * `"eslint-fix-js": "eslint src/**/*.js --fix"` * `"eslint-fix-vue": "eslint src/**/*.vue --fix` ---- ### 2022.1.19 建库 添加一张表 `UserProfile`。配置Django设置,配置Vue和Django的通信。 写了简单的登陆注册接口。 ---- ### 2022.1.20 添加三张表,四个接口 添加三张表 `Post`, `Comment`, `Token`。 为登陆注册添加`ExpiringAuthToken`(24小时后过期),基础权限`IsAuthenticatedOrReadOnly`。 四个接口分别是:更新用户信息、获取用户Token、创建帖子、创建评论。