K
K
Kappy2018-11-22 19:52:53
Node.js
Kappy, 2018-11-22 19:52:53

What is the relevant model for a SPA application?

I am currently developing a spa application. The structure should be the following: database, server, client.
The components are there, the database is ready, it remains to connect everything. But if everything is clear with the server and the database, then at the stage of the client and the server there were questions.
How to properly connect server and client based on node js(express) and react?
So far, the choice has been made on communication via api. Are there any pitfalls? And how is it correct? (As close as possible to the correct one)? Articles are kind of useless. All under copy-paste from foreign sources.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Filippov, 2018-11-22
@KappyJS

buzzwords were written in the question, and the question itself is simple) if you want the best option by modern standards - use graphQL, if it's difficult or not desirable, the good old rest api.
And a self-respecting developer will not read articles in Russian, he will read sources ;-)

A
Alexey, 2018-11-23
@Azperin

sockets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question