After spending some time working on a couple projects using node js and express. I’m wondering about the best practices for sending client data to the server. Typically i’m doing this using ajax calls. I’m wondering if this is the best practice or if there is another way. Any feedback would be great, thanks.
- The user takes some action
- then using ajax i’ll send that across to the server.
- Express route will handle the client data via some REST verb(GET, POST, DELETE…)
- server will process the data the send the res. back to the client.