Coder Social home page Coder Social logo

nei server about nei-toolkit HOT 17 CLOSED

wjssxc avatar wjssxc commented on May 21, 2024
nei server

from nei-toolkit.

Comments (17)

AbnerZheng avatar AbnerZheng commented on May 21, 2024

请查看这个

from nei-toolkit.

wjssxc avatar wjssxc commented on May 21, 2024

谢谢,我重新安装了一遍就好了,之前也是按照那个文档写的弄的。

from nei-toolkit.

AbnerZheng avatar AbnerZheng commented on May 21, 2024

@wjssxc 是因为版本吗? 你的nei是不是很久没更新了?

from nei-toolkit.

luyanchen avatar luyanchen commented on May 21, 2024

我也按那个文档弄了,在启动本地模拟容器提示找不到nei项目,请指教,谢谢

from nei-toolkit.

AbnerZheng avatar AbnerZheng commented on May 21, 2024

@luyanchen 你好,麻烦在你的执行nei路径下把文件夹结构给我看下。

from nei-toolkit.

luyanchen avatar luyanchen commented on May 21, 2024

我用的是工程结构中导入的Node预置模板,然后本地执行nei build -sk key -o todo生成项目,接着nei server -sk key -o todo,提示找不到nei项目

from nei-toolkit.

AbnerZheng avatar AbnerZheng commented on May 21, 2024

麻烦试着进入todo文件夹,然后执行nei server即可。

from nei-toolkit.

luyanchen avatar luyanchen commented on May 21, 2024

还是提示找不到nei项目。我总共做了一下操作:1.新建工程规范;2.导入Node预置模板;3 本地nei build;4 本地nei server。

from nei-toolkit.

AbnerZheng avatar AbnerZheng commented on May 21, 2024

我看错了,你这里用的是build sk, 构建工程规范,它是没有接口的,也就是说不是一个工程项目,就不会有mock server功能(mock 应该是对接口的)。所以你要做的是新建一个工程,然后创建响应的接口,再将该工程的工程规范(这个功能在项目的设置)设置为该工程规范,这样就可以了

from nei-toolkit.

luyanchen avatar luyanchen commented on May 21, 2024

我说说我的需求吧,本地有一个已经开发好的前端项目。现在想在nei上使用mock服务,让前端可以访问mock数据。然后我在NEI上新建工程,创建接口,并设置了上述工程规范为该工程规范。接下来本地项目如何获取mock数据?请您多指教

from nei-toolkit.

AbnerZheng avatar AbnerZheng commented on May 21, 2024

接下来,该工程的设置页会有个key,然后你使用nei build -k xxxx(xxx为这个项目的key), 之后在生成文件夹中执行nei server,即可。

from nei-toolkit.

luyanchen avatar luyanchen commented on May 21, 2024

nei build -k xxxx 提示权限错误,用nei build -sk xxxx, 在生成文件夹执行nei server还是找不到nei项目

from nei-toolkit.

AbnerZheng avatar AbnerZheng commented on May 21, 2024

权限错误就用sudo执行。明确一点:sk命令是不会生成mock文件夹的。另外sk和k两个命令所用的key是不一样的,k是项目key,sk是工程规范key

from nei-toolkit.

luyanchen avatar luyanchen commented on May 21, 2024

我的意思是nei server -k key返回的代码是403,没有权限。另外我在项目下未找到项目的key。项目下只有资源动态两个tab,没有工具和页面。是否因为没有权限,我用的是网易邮箱登录的。

from nei-toolkit.

AbnerZheng avatar AbnerZheng commented on May 21, 2024

你的项目名是公共资源库吗? 请新建一个项目, 公共资源库是整个项目组公用的一些资源。

from nei-toolkit.

luyanchen avatar luyanchen commented on May 21, 2024

明白了,项目名确实是公共资源库,按照您的建议已解决了,谢谢您的指教!

from nei-toolkit.

AbnerZheng avatar AbnerZheng commented on May 21, 2024

不客气

from nei-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.