Angular project backend on Netlify/Render or Public IP [closed]

I’m working on an Angular Project and I’m hosting it on Netlify currently. I’m able to access the website but if I want to login, I need to have the app.js file running on my local machine, which is understandable as I’m connecting to my mongoDB database through that, but I can’t always have it running on my local machine so I’m looking for a way to somehow have it running on some server(not sure if that’s the right thing to do or even the right term).

Is there a way I can run it along with the rest of my code on Netlify or even somewhere else. I’m open to all suggestions and solutions.

I’m very new to this so please let me know if you need more info regarding anything.

This is the app.js file:

const express=require('express');
const app=express();
const port=process.env.port || 8080 //this is used for server port z
const authRoute=require('./routes/auth-route');
const mongoose=require('mongoose');
const bodyParser = require('body-parser');
const cors=require('cors');

mongoose.connect('some_random_text_to_replace_the_mongodb_connection_string',(err)=>{
    if(err){
        console.log("Database is not connected");
    }else{
        console.log("Database is connected...")
    }
}); 

mongoose.set('strictQuery', true);

app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json());
app.use(cors())
app.use('/auth',authRoute);

app.get('/',(req,res) => {
    res.send('welcome to hSVPGis .... ')
})
app.listen(port,()=>{
console.log("Node server is connected..",port)
})