weixin_39862899
weixin_39862899
2021-01-06 04:58

Include a test token server

dev.html is still trying to get http://localhost:5000/api/token and that doesn't work.

该提问来源于开源项目:openannotation/annotator

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39918043 weixin_39918043 4月前

    I am now happy, running annotator-store on port 5000, and the token server on port 5001, and having dev.html talk to both of them in parallel. It's all working out nicely now. (On my unbreak-standalone branch.)

    点赞 评论 复制链接分享
  • weixin_39918043 weixin_39918043 4月前

    How am I supposed to run an annotator-store on the same machine, if the dummy token server is listening on :5000?

    点赞 评论 复制链接分享
  • weixin_39918043 weixin_39918043 4月前

    I can run them together by (for example) moving the token server from :5000 to :5001 (in it's config and in dev.html), but is this how it's intended to be done?

    点赞 评论 复制链接分享
  • weixin_39862899 weixin_39862899 4月前

    Good question, . A couple options:

    1) Include an example token server in annotator-store 2) Don't include the Store plugin by default in dev.html

    What makes sense to you?

    By the way, I have some changes I'm about to push tomorrow for hypothesis/h where I put the token route back on /api/token so that it should work to run annotator development against h.

    点赞 评论 复制链接分享

相关推荐