lopezjurip / routed-react

Using create-react-app with React Router + Express.js and Docker. This is a naive and simple way where server-side rendering is not required.
https://medium.com/@patriciolpezjuri/using-create-react-app-with-react-router-express-js-8fa658bf892d
110 stars 31 forks source link

How to use node packages and communicate btw client and server. #5

Open firaskrichi opened 7 years ago

firaskrichi commented 7 years ago

Trying to use the stripe npm package for node and was wondering how to send data from the client (react & redux) to the server securly.

Thanks!

lopezjurip commented 7 years ago

Using a secure HTTP connection is the only way to go. You can get free certificates with https://letsencrypt.org/ and add it to Express: https://expressjs.com/en/advanced/best-practice-security.html

firaskrichi commented 7 years ago

Thanks! So it would be an api right? Does that mean that it should be hosted separately?