i have nodejs config file(backend) in which some configuration data is defined:
module.exports = {
product: {
name: 'Event'
},
server: {
host: '0.0.0.0',
port: 8000
},
database: {
host: '127.0.0.1',
port: 27017,
db: 'EventExchange',
username: '',
password: ''
},
key:{
privateKey: 'dufediioeduedhn',
tokenExpiry: 1*30*1000*60 //1 hour
},
admin:{
"username" : "admssin",
"password" : "adminss123",
"scope" : "adamssin"
}
};
i have to access port and host parameter in angular(client side). how is it posssible ?
Thanks!