# webapp **Repository Path**: zhou3060/webapp ## Basic Information - **Project Name**: webapp - **Description**: 基于nodejs的koa2框架实现的webapp后台,主要技术栈:koa2 + redis + mysql - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-01-02 - **Last Updated**: 2024-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webapp #### 介绍 基于nodejs的koa2框架实现的webapp #### 软件架构 软件架构说明 #### 安装教程 1. npm install 2. xxxx 3. xxxx #### 使用说明 1. npm run dev 2. npm run build 3. npm run start #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) #### redis服务 1. 打开一个 cmd 窗口 使用 cd 命令切换目录到 C:\redis 运行: ```cmd redis-server.exe redis.windows.conf ``` 2. 另启一个 cmd 窗口,原来的不要关闭,不然就无法访问服务端,切换到 redis 目录下运行 ```cmd redis-cli.exe -h 127.0.0.1 -p 6379 set myKey abc get myKey ``` #### mysql root@localhost: a3jBCJZrrU%P 1. 以管理员身份进入CMD ```cmd cd C:\web\mysql-8.0.11\bin net start mysql ``` 2. 通过tasklist命令查看mysqld.exe如果已启动,则直接登录即可 ```cmd mysql -u root -p ``` 3. 修改用户密码 ```cmd alter user user() identified by "123456"; ``` 4. koa+mysql 时, mysql 8+ 进行身份认证要切换 ```cmd mysql -u root -p use webapp; alter user 'root'@'localhost' identified with mysql_native_password by '123456'; flush privileges; ``` 9. 关闭mysql ```cmd mysqladmin -uroot shutdown ``` #### gitee 1. git init 2. git pull https://gitee.com/zhou3060/webapp.git 3. git push