To call a local database from a wix site use Wix Fetch from either the page itself or public folder. Something like this:
export function employer(json_payload) {
return fetch("http://localhost:5000/endpoint", {
method: 'post',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(json_payload)
})
.then(response => response.json())
.then( (json) => {
if(json.error) {
let callback = {
status: 400,
response: json.error
}
return callback;
} else {
return json;
}
});
}
And please do not post in all capslock. See the community guidelines