Questions tagged [nodejs-express-server]

21 questions
0
votes
0 answers

Restrict handlebars-partials for spedific pages

How to restrict handlebars-partials while rendering specific pages ? Or How to enable handlebars-partials while rendering specific pages only ?
0
votes
0 answers

Calling app.use in nodejs to add file middleware in bulk

I'm trying to add data-driven code to load the middleware for various load-and-go files, that is, commonly used ones ones that HTML sent via sendFile() has in its BODY section. I am asking for help figuring out how to substitute the bold…
kovacsbv
  • 351
  • 4
  • 11
0
votes
1 answer

'argument hostname required' vhost

Having a weird issue with express vhost inside AWS. Every time I deploy I get an error in my EB log saying: TypeError: argument hostname is required at vhost (/var/app/current/node_modules/vhost/index.js:39:11) at Object.
-1
votes
1 answer

Can I have an Express server and Java Spring boot for Backend at the same time?

I am using Java spring boot for an REST API, using Stripe to handle Payment. To handle the payments, I am planning to use an Express server. Is this Okay? Will I face any issues in deployment? I am planning to start working on it soon.
-2
votes
1 answer

I am getting a reference error in my node application

I'm new to express.js and node and am currently getting a reference error in my code, please do advise on how I should solve this? apparently the code cant find my reference to the "articles" constatn all though its defined. Here is my author.ejs…
-4
votes
1 answer

how to solve 404 issue in nodejs express

I'm using vs code to develop my project using node.js. The problem is that API is not working when I run in postman and insomania the following error is given below: Error 404 ::ffff:127.0.0.1 - - [19/Oct/2022:04:07:36 +0000] "GET /api/prayer/create…
1
2