1.easy-mock代码库;命令:git clone git@github.com:easy-mock/easy-mock.git;
2.nvm+redis+MongoDB的安装
2-1)nvm安装和使用:https://www.cnblogs.com/dengjerry/p/12686812.html
2-2)redis的安装和介绍:https://www.runoob.com/redis/redis-install.html;
2-3)MongoDB的安装介绍:https://www.runoob.com/mongodb/mongodb-window-install.html
3.切换node版本到8.x
4.启动reids
通过.zip解压出来,直接运行redis-server.exe即可
5.启动MongoDB
1.创建db文件夹;E:\demo\db(第一次运行时创建就行了)
2.打开cmd,切换至MongoDBbin所在目录 C:\Program Files\MongoDB\Server\4.2\bin;
3.运行mongod --dbpath E:\demo\db
6.启动easy-mock
npm run dev