Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to make node js server secure?

I have developed an easy node js application. I have got an Digital Ocean server now. This will be the first time I will publish my app to the real server. I have a react native app and I use fetch to communicate with the server. I am fetching from the url 'http://serverIP/:id'. I am getting correct responses both in my app test and both in Postman. I am only using server IP to connect nothing more. So in real world this is not secure. So what should I add to my node js code. Is there any package or https is the topic I should check. Can anyone please help me? I am really excited and as soon as I solve this I will publish my app.

Comments