while making this school project i finish the code and make everything right, at least that's what i thought. I'll put here my app.js and bin section, so if any
I'm trying to connect MongoDB with node.js, but the terminal is showing MongoAPIError: URI must include hostname, domain name, and tld Backend Code I have writt
I was just curious since I thought it wouldn't matter where you place the middleware in your code as long as it's in the app/index.js What I mean is this: const
I've been working on a project with express, and have a post request set up. However, it returns an empty body on the response, but it appears to be working oth
typeorm 0.3.6 deprecated createConnections() and and introduced DataSource. It is causing some issues with multi-tenant architecture. Either I have to initializ
I am working on a project that has a user login/register system, a QR Code scanner. My goal is to develop a web application. I have made the login/register form
I have a nodejs app utilising express using @okta/okta-sdk-nodejs and @okta/oidc-middleware to handle authentication. I have a number of routes that work fine a
After searching around about it, I can't find any solution or mistake in my code about this error. I've got my app.js files inside my node JS application with t
I need to get some data from a REST API in my GraphQL API. For that I'm extending RESTDataSource from apollo-datasource-rest. From what I understood, RESTDataSo
I have written the line: app.engine('hbs',hbs({extanme:'hbs',defaultLayout:'layout',layoutsDir:__dirname+'/views/layout/',partialsDir:__dirname+'/views/partials
I am trying to deploy my app on digital ocean (react-express app). During deployment, I used to make my requests to the following endpoint "http://localhost:800
I am trying to set up some user authentication and want to use Google's OAuth2.0 to do so. So far, I have set up a Google API Project at console.cloud.google.co
I'm trying to setup a caching system for my apollo express server, but it seems like the guides I've followed from the official docs: https://www.apollographql.
I am trying to upload multiple files to my server using multer. Even though I can read the req.files array, but can't access the buffer property of them. I trie
Some of our users getting randomly aborted API request. With the exact same API endpoint URL and Payload, I never have this issue. I think it is network related
My Mongo schema looks like this, I want to update a flashcard object located in an array of flashcard also located in an array of subject. const classrooms = ne
I'm creating a simple voting app where by the client gets to choose from a HTML select dropdown and select an option, and then submitted through a form it fires
In one of my projects, simply this worked: import cors from "cors"; server.use(cors()); but currently I am having this lovely typescript warning message in my
How to zip and download folder from D:/downloads path. As a 1st step, I was able to create a folder inside 'downloads' with dummy content. As a next step I want
EDIT: @LawrenceCherone solved this, its (req, res, next) not (err, res, req) I am creating a MERN app (Mongo, express, react, node). I have some routes that wor