Answer the question
In order to leave comments, you need to log in
How to write a server part for mobile applications on a node?
I understand how to write on a node for web applications. Everything works via the HTTP/HTTPS protocol. But how to write a backend for mobile applications? What server to write, and what modules to use? Maybe there are some tutorials
Answer the question
In order to leave comments, you need to log in
Absolutely the same as for the web.
Everything of course depends on the protocol, the application can communicate with the server via http / websocket - everything is simple here, but it can communicate using any of its protocols, then you can look for a server implementation for this protocol on npmjs.org or implement it yourself on top of the standard net (tcp), tls (tls or ssl + tcp) or dgram (udp) modules
I write REST services on Express + Sequelize + JWT (for authentication)
Hint : To build a server as quickly as possible, as well as to create a cool, documented and easily tested API, you need to use swagger
First, describe the API and then click "Generate Server"=>"Node.js "
voila :)
You can upload the configuration from the swagger to Postman and immediately generate stubs for requests.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question