I am able to run migrate command when I specify the database name, user and password directly. But when I provide with env variable/value. It says no database s
Im using passport.js JWT strategy to authenticate my MEAN-Stack app. The unsecured routes work properly but i cant get the secured routes to work. they allways
How to check spelling mistakes, grammar & punctuation errors, use of greetings & short keywords and total time to complete each single chat session in s
I am using Mailgun API with nodejs+express to send emails. I want to transition into using templates instead of writing the whole email as the HTML tag in nodej
I am using node v14.17.0,"apollo-server-express": "^2.25.0", "graphql-upload": "^12.0.0" I am trying to upload an image but i dont get createReadStream from the
I would like that email had format like: [email protected]. Which is the best way to do it? I have a component for registration and I have the field like this: <mat-f
I don't know why it's happening, but it's really annoying. I expected the file to be downloaded according to the express docs. I have the next code: //in rea
I'm facing this weird issue in NodeJS when using with Passport.js, Express and Mongoose. Basically, I get an error saying "Cannot set headers after they are sen
I have used ExpressJS with express-session for Session Management. According to its NPM page, we can add a maxAge and cookies.expires. But, both of these manage
I have two collections, Group and GroupChat. A group has a chatroom respectively. // group.model { name: string, desc: string } // group.chat.model { group:
I am having issues trying to get a hold of the NestJS handler's route in an interceptor I am writing. For instance, if a Controller had a route as such: @Get
I have the following setup in Visual Studio Code for nodejs project: Model: genre.js const Joi = require('joi'); const mongoose = require('mongoose'); const
I have a many to many relationship between User and Category through UserCategory as below. let user = await User.findAll({ where: { id: req.query.user
I know this seems like a dumb question, but I've deployed this same app to google and heroku successfully previously, but when I try to deploy to elastic beanst
local host port served an error in browser and did not load my static files. Returned an error 'Failed to lookup view "index" in views directory "C:\Users\xxxx\
I am creating a PUT method to update a given set of data however in my update function, req.body is undefined. controller.js async function reviewExists(req, re
My server gets a response from another server with a document from a mongodb database with a body similar to { messageDetails: { body: "hello" }
Update This is happening because of hot-reloading comes with Creact React App. Related issues: https://github.com/expressjs/multer/issues/566 https://github.c
I use node.js, express and express-ws that is based on ws Express-ws allows to create express-like endpoints for websockets. I am looking for a solution to a
This is the code I have written using express and node.js const express = require("express"); const https = require("https"); const app = express();