I want to include header.ejs and footer.ejs into order.ejs. The image below my folder structure. But, I've got error. The code related to include in order.ejs
I have a task where I am given a URL such as https://xyz.json. This URL prompts the downloading of the JSON file into the local. I am now required to read the u
so I have a schema where I want to add ObjectID to an array of id's in mongoose, I tried adding it unique, but did not work. Most likely because I need to itera
Hello I'm on a (ReactJs Node Mysql Express) stack, my website has an events tab which the admin could upload to it events. Each event has a cover photo, inner p
Hello I'm on a (ReactJs Node Mysql Express) stack, my website has an events tab which the admin could upload to it events. Each event has a cover photo, inner p
I am passing an object from server and I cannot see it pass functions. here is my code. const express = require('express'); const app = express(); const path =
I am building an API using express js. I have structured it so that each data model (e.g. user, organization, etc.) has their own modules as such: router - vali
Im making an API on nodejs with express and mysql. In the POST method i dont get any error but on mysql store al values as 0, like this: 1 0 0.00 0000-00-00 0
I wonder if there is a performance difference between below cases. nodejs oracledb lib - express server connection code - 1 query, 1 connection whenever I send
I'm relatively new to React, but facing an issue which I understand to be fairly common; my app works fine, but when I refresh or try to link directly to a rout
According to stripe's dashboard (test mode), customer's next subscription invoice should have been created on April 28th at 5AM but it's April 29th today and th
I am creating a Login/Registration Form Using Nodejs. I am hashing the password entered by the user using bcrypt.js but when I assign the pass
I was working on a MERN app and was trying to use jason web-token (JWT) and bcrypt for authentication. It uses two routes for signup and authentication. However
I would like to set a req.body parameter for the request that the video tag is requesting. The Video tag requests at a certain route to request a video stream.
I had a Traversy Media tutorial on how to learn the MERN stack that I was following. I had the first part installed on my desktop and it was working properly. o
i'm working on a web app in which a user can create an address when logged in, how can i get the current logged in user address which was created by the user th
I trying to migrate my Node.js application from jaeger-client to @opentelemetry/* packages In my Node.js application i have a simple http server and i want to c
I am trying to build a database query with express js to get a recipe from a table that joins a recipe's information with specific ingredients from a third tabl
Probably the title isn't very clear and is a bit confusing, and to be honest, I do not really know how to ask this question since I'm new to JavaScript and Mong
I have two modules in two different server i.e., User and transaction module. User module has one Login API which generates the JWT token, Now I want to send th