Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there any exmaples #3

Open
monkeycraps opened this issue Oct 20, 2018 · 1 comment
Open

is there any exmaples #3

monkeycraps opened this issue Oct 20, 2018 · 1 comment

Comments

@monkeycraps
Copy link

没找到详细的demo
对于则怎么对外暴露端口,配置文件,日志,是否可以增加一个简明的 exampls 文件夹,还是不清楚,项目目录结构,package.json 依赖配置,怎么发起调用,对外暴露服务 等怎么操作

@medns
Copy link
Member

medns commented Jan 9, 2019

用法与普通的 Node.js 服务完全相同,可以支持 express/koa 等等你喜欢的框架。
如果你需要 rpc 调用,可以参考 @tars/rpc 这个模块的使用说明。
如果你需要打印日志,就直接使用 console.log... 来打印即可,想输出独立日志可以参考 @tars/logs 这个模块

这个框架的整体设计是对上层完全透明,上层不怎么需要关心下层,使用到了再将模块引入即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants