Comments (17)
from nei-toolkit.
谢谢,我重新安装了一遍就好了,之前也是按照那个文档写的弄的。
from nei-toolkit.
@wjssxc 是因为版本吗? 你的nei是不是很久没更新了?
from nei-toolkit.
我也按那个文档弄了,在启动本地模拟容器提示找不到nei项目,请指教,谢谢
from nei-toolkit.
@luyanchen 你好,麻烦在你的执行nei路径下把文件夹结构给我看下。
from nei-toolkit.
我用的是工程结构中导入的Node预置模板,然后本地执行nei build -sk key -o todo生成项目,接着nei server -sk key -o todo,提示找不到nei项目
from nei-toolkit.
麻烦试着进入todo文件夹,然后执行nei server即可。
from nei-toolkit.
还是提示找不到nei项目。我总共做了一下操作:1.新建工程规范;2.导入Node预置模板;3 本地nei build;4 本地nei server。
from nei-toolkit.
我看错了,你这里用的是build sk, 构建工程规范,它是没有接口的,也就是说不是一个工程项目,就不会有mock server功能(mock 应该是对接口的)。所以你要做的是新建一个工程,然后创建响应的接口,再将该工程的工程规范(这个功能在项目的设置
)设置为该工程规范,这样就可以了
from nei-toolkit.
我说说我的需求吧,本地有一个已经开发好的前端项目。现在想在nei上使用mock服务,让前端可以访问mock数据。然后我在NEI上新建工程,创建接口,并设置了上述工程规范为该工程规范。接下来本地项目如何获取mock数据?请您多指教
from nei-toolkit.
接下来,该工程的设置页会有个key,然后你使用nei build -k xxxx(xxx为这个项目
的key), 之后在生成文件夹中执行nei server,即可。
from nei-toolkit.
nei build -k xxxx 提示权限错误,用nei build -sk xxxx, 在生成文件夹执行nei server还是找不到nei项目
from nei-toolkit.
权限错误就用sudo执行。明确一点:sk命令是不会生成mock文件夹的。另外sk和k两个命令所用的key是不一样的,k是项目key,sk是工程规范key
from nei-toolkit.
我的意思是nei server -k key返回的代码是403,没有权限。另外我在项目下未找到项目的key。项目下只有资源和动态两个tab,没有工具和页面。是否因为没有权限,我用的是网易邮箱登录的。
from nei-toolkit.
你的项目名是公共资源库
吗? 请新建一个项目, 公共资源库是整个项目组公用的一些资源。
from nei-toolkit.
明白了,项目名确实是公共资源库,按照您的建议已解决了,谢谢您的指教!
from nei-toolkit.
不客气
from nei-toolkit.
Related Issues (20)
- 本地mock的时候无法下载新资源 HOT 1
- 本地mock拿不到nei的最新数据 HOT 1
- 运行nei出错TDD error: Function doesn't evalute to a Map
- 有没有idea对应插件
- 【优化】nei-toolkit工具mock在线接口时,使用持久化数据接口
- 【bug】在线mock接口查询参数匹配失效
- 删除测试集失败
- 路径参数不能填写? HOT 1
- 路径参数id=:id在用例测试的时候依旧传递的值为:id
- 请问,nej.define如何引用node_modules里面的包? HOT 1
- 已创建的接口选择从JSON导入请求/响应参数字段的疑问 HOT 3
- 修改响应结果显示服务器内部错误 HOT 1
- nei批量导入接口测试用例,显示导入失败
- NEI数据模型支持属性可以非必填
- 能否将数据导出功能也开放到私有化部署里
- 导出功能不完善,接口返参数据不全 HOT 5
- nei build -s 指令不起作用 HOT 1
- 自己建的API居然没有权限访问
- 新增接口后修改响应参数提交没响应 HOT 1
- 我就是单纯过来骂你的,真尼玛难用
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nei-toolkit.