1.easy-mock代码库;命令:git clone [email protected]: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
原文地址:https://www.cnblogs.com/dengjerry/p/12686666.html
时间: 2024-10-20 13:19:56