Category "express"

Express Login With Redirect Using Node.js

I'm trying to implement a basic login mechanism based on this answer: https://stackoverflow.com/a/8003291/5111904 In my backend I'm handling the login post req

Docker is not accepting proxy api server

i get the following error, when doing a docker-compose up. The app is running but cannot make any api post/get requests. The express server is using port 5000.

How to upload Files and Other fields with Request Body in Nestjs

I want to upload three fields like: Example Data: partner_id: 3638, review: [{'product_id': 155, 'order_sku_id': 155, 'review_title': 'Orange Review','rating':

Jest testing multiple test file port 3000 already in use

I'm creating a testing for my express app. The project has multiple test files. In each module the server instance is required at beforeEach() method and closed

Discord.js how to make suggest command?

What can I do in Discord.js to make suggest command? My actual code doesn't work, i have 2 types of suggestions: support server and bot. Here's my code: if (co

Allow multiple CORS domain in express js

How do I allow multiple domains for CORS in express in a simplified way. I have cors: { origin: "www.one.com"; } app.all('*', function(req,

Failed at the [email protected] start script

I am currently facing a deployment issue, can anyone help me with it? Repo: https://github.com/PradhumnaPancholi/Mail-it Error Msg: npm ERR! Failed at the serve

How to avoid spamming a NodeJS function? [closed]

So basicly I have a contact form in my Express application what sends me an email with SMTP. I want to do some checks in the server-side to av

Failed prop type: Invalid prop `errors` of type `string` supplied to `CreateProfile`, expected `object`

I am trying to create a profile for a user on login, after submitting the form I am getting the error as invalid props errors. As both my client and serv

Running an Express server middleware alongside Nuxt

My endpoints aren't working, and most likely because the server on which express is isn't running correctly. I run my files with npm run dev and my express file

express debug module not working

I'm on Windows trying to use the debug module https://www.npmjs.org/package/debug I installed express-generator var debug = require('debug')('MyApp'); debug('

Handlebars registerHelper serverside with Expressjs

I am using expressjs with handlebars as templating engine with following code in Webstorm IDE with express generator.There is no visible handlebars require in t

render ejs template for robots.txt in express

I want to use some variables in my robots.txt file in Express. How can I render this file as an EJS template? I already have EJS working for .html files. app.

Express Session Does Not Save After Redirect

In my production app, saving data to a session then redirecting is completely unreliable. A console.log after saving the session shows the data has been attach

TypeError: app.get is not a function

I'm trying to use express in a prototype function ioServer() { } module.exports = ioServer; ioServer.prototype.start = function() { var app = requ

Error: Failed to lookup view "layout" in views directory

I am getting the error like Error: Failed to lookup view "layout" in views directory. Below is the source code of the files as well as the folder structure. in

Next.js Authentication with JWT

I am moving a project from React to Next.js and was wondering if the same authentication process is okay. Basically, the user enters their username and password

CardElement not showing ui components in react app ie `Card Number, MM/YY, CVC?

So my problem is that I cannot see the CardElement Ui component in the image below. It should be above the Order Total: $0 which is beside the payment method.

Import sql file using express js

I am trying to import the sql file in express js. i try the following codes but it is not work while using mssql and fs module fs.readFile(__dirname +'/databa

Nodejs Express on Heroku App EACCES 0.0.0.0:80

I am trying to run a Node app on a newly created Heroku App from their web. I followed their steps and still I am getting errors when displaying app status. I