Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
243 views
in Technique[技术] by (71.8m points)

javascript - 使Web应用程序服务器适应移动应用程序(Adapting Web app server to work with Mobile app)

I have a Node server running on port 8080 and a react web based front end on port 3000.

(我有一个运行在端口8080上的节点服务器,一个运行在端口3000上的基于React Web的前端。)

The two communicate by sending requests to each other.

(两者通过相互发送请求进行通信。)

For example when the user logs in, the server does the logic and stores a token in the client (not through a response).

(例如,当用户登录时,服务器执行逻辑并将令牌存储在客户端中(而不是通过响应)。)

How would I adapt this to work with a mobile app (react native)?

(我将如何适应移动应用程序(本机反应)?)

As in how can I store a token on mobile (cookies..?).

(就像我如何在移动设备上存储令牌(cookies ..?)一样。)

Is requesting data the same as a web app?

(请求数据与Web应用程序相同吗?)

Anything else I need to be aware of?

(我还有什么需要注意的吗?)

Thanks in advance.

(提前致谢。)

  ask by XtraTerrestrialCoder translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...