Skip to main content

Questions tagged [express]

Express.js is a minimal and flexible Node.js web application framework providing a robust set of features for building web applications.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
35 views

I have a simple code thet works fine: ...
Sergey's user avatar
  • 1,044
0 votes
0 answers
18 views

So I was trying to use Next.js and Express. I used Next.js only for frontend and SSR (ssr for some pages only). How can I add protected routes in Next.js in this two server setup?. Normally, we would ...
Amal Jose's user avatar
-5 votes
1 answer
82 views

I have a request going from Postman to a Express/Node server locally. GET requests to the same endpoint are working as expected but when I ...
Paddy Hallihan's user avatar
-4 votes
0 answers
55 views

This is my code to connect with MongoDB Atlas ...
user2312546's user avatar
-4 votes
0 answers
65 views

I have been working on a backend project for some months. It was working fine until when I had issue with the MongoDB Compass connection which I successfully fixed (lost data in the process). However, ...
Bello Shehu's user avatar
0 votes
1 answer
45 views

I'm building a small backend as a learning exercise with node.js, express, typescript, and the shopify api. My server runs fine and successfully goes to the home "/" page, but when I try to ...
marg's user avatar
  • 41
Best practices
1 vote
2 replies
23 views

I just want to ask about this design issue I just encountered when I'm coding this edit-profile part for the user. I'm deciding on whether I should or should not individually code the patch routes, ...
hanzoera's user avatar
6 votes
1 answer
296 views

I’m running into a MongoDB connection issue that only appeared after switching Node.js versions, and I haven’t been able to resolve it despite extensive troubleshooting. Environment OS: Windows 10 ...
Vin's user avatar
  • 91
0 votes
0 answers
37 views

I’m migrating my e-commerce store from Shopify to a custom PERN stack application, and I need to implement permanent 301 redirects from old product and category URLs to new URLs while preserving SEO. ...
Sharjeel Faiq's user avatar
1 vote
1 answer
122 views

I am having trouble with the implementation of the mongoose-sequence library in my MongoDB, Express, Node.js API. This project is one for adding people to a ...
JuicyGronky's user avatar
-2 votes
1 answer
116 views

I have a piece of middleware that authenticates a token that is being sent in a post request. My project is written in Typescript with express backend. Below is how I have integrated my middleware at ...
Mezzo's user avatar
  • 49
1 vote
1 answer
64 views

I am creating a crud application using Node JS, Express JS & SQLite database. For every database insertion i am using a column 'created_at' to insert current timestamp. But according to my ...
Swaviman Sahoo's user avatar
2 votes
1 answer
76 views

I apologize if this is impossible, unadvisable, or answered elsewhere, but I have spent a couple days trying to find an answer as well as changing/testing the code every way I could think of without ...
kapnKronik's user avatar
0 votes
1 answer
76 views

I am building a Node.js application and trying to update a profile with file upload functionality using Multer. When I try to delete the old profile picture then I ...
Hamza Fareed's user avatar
1 vote
1 answer
72 views

Postgres is running inside a docker container named postgres_server.development.ch_api Express is running inside another docker container named express_server.development.ch_api I am trying to setup ...
PirateApp's user avatar
  • 6,403
0 votes
1 answer
55 views

Tech stack Node.js Express.js @sendgrid/mail SendGrid (Dynamic Templates and HTML templates) Sometimes, emails sent via SendGrid are rendered in an incorrect or broken format (layout issues, missing ...
Navindu Dilshan's user avatar
2 votes
1 answer
57 views

I'm working on an Express controller to update product's inventories when saving an order. Below is the code to recalculate sold & sellable amount of a product. ...
James Vu's user avatar
  • 2,493
1 vote
1 answer
49 views

I'm currently learning Node and express and ran into this recently. If I put spaces after the colon in my header, the request body in node for POST shows up as ...
Andorrax's user avatar
  • 135
Advice
0 votes
2 replies
48 views

I have a social networking site where people connect, meet and build network. User created their profile based on there interest. Users can visit others people profile and send connection request to ...
Asit Waghmare's user avatar
Best practices
0 votes
1 replies
65 views

I need some help... I have code like below: main/index.js ...
Никита Середа's user avatar
1 vote
1 answer
106 views

Question: Is it possible to use AbortController with POST requests without immediately triggering a 'close' event on the server? If not is there a more appropriate tool / method to cancel post ...
myNewAccount's user avatar
Best practices
0 votes
0 replies
70 views

The API endpoint is using the Express.js package while the scheduler is using the bree.js. The previous approach is to wrap the scheduler starting program into a function and start the scheduler when ...
hi there's user avatar
Best practices
0 votes
0 replies
42 views

I am planning to build a project using an Express JS REST API with React native. I am wondering how email verification is usually handled with this kind of stack. A flow is: User registers with ...
1million_ naira's user avatar
1 vote
1 answer
79 views

I'm trying to understand express-session, and I'm still new to Express. From the Express docs, I learned that when I write: ...
Super's user avatar
  • 75
0 votes
0 answers
77 views

I’m currently working on a logistics app that manages goods transportation in my area. The tech stack includes React Native for the mobile app, Node.js / Express.js for the backend, MongoDB as the ...
Hiren Gamit's user avatar
-1 votes
1 answer
68 views

I can get Express to serve plaintext pages, but I'm trying to get it to serve HTML All I get in the web browser is "Cannot GET /concerts" ...
max2015's user avatar
  • 129
Advice
0 votes
2 replies
69 views

I have been trying to find a video or explanation on how to use contentFor(). I already read the documentation, but it is still not working. A view: ...
Keivin's user avatar
  • 1
Advice
1 vote
1 replies
60 views

I’m building a Node.js web app using Express, Nunjucks as the templating engine and cookie-session library for storing user sessions in cookies. I’d like to use the ...
Pan Wolodyjowsky's user avatar
-1 votes
2 answers
138 views

I am trying to set cookies from the backend but the frontend (browser) keeps auto deleting them. This only happens on production not on localhost. The cookie flow is this: user clicks login with ...
Stacklep1's user avatar
  • 433
0 votes
1 answer
54 views

Using Node.js and Express.js, I am generating an AWS S3 pre-signed upload URL.The request to S3 returns 200 OK but the uploaded file file never appeared in the bucket. There is no error in AWS console....
Gnaneshwar P's user avatar
Advice
1 vote
3 replies
75 views

I am preparing a project for a computer networks course and I wanted to ask for advice. My teacher gave me this assignment for the exam: make an analysis on the vulnerabilities and attacks to protect ...
user31985044's user avatar
3 votes
1 answer
102 views

After having carefully converted my JS code for NodeJS from CJS to ESM (with some unexpected difficulties), I am failing to send a body content to my Node Express web server, running for test purposes ...
toreric's user avatar
  • 444
1 vote
0 answers
52 views

Problem Summary I have a Node.js monorepo with both an EJS-based admin panel and a React frontend. The app works perfectly on localhost, but when deployed to cPanel with Passenger, only the React app ...
production 's user avatar
Advice
0 votes
1 replies
43 views

I am creating a web application using express.js. I have been following a course by Angela Wu, and one of the chapters involves a templating tool called 'Express' which is built on node.js. Following ...
Stellas Man's user avatar
1 vote
1 answer
57 views

I am integrating Flutterwave payments in my project(Node.js/Express). In development, deposits work correctly: User pays; Flutterwave triggers the webhook; Payment gets verified and the user balance ...
Babatunde's user avatar
3 votes
1 answer
113 views

I'm participating in an online Sudoku-solving challenge where you create an account, and the server gives you a JWT token. Every request (getting the board, submitting answers, etc.) must include that ...
Novice's user avatar
  • 55
1 vote
1 answer
227 views

If I have understood correctly, the NestJS with default Express engine uses and enables the "body-parser" as default. If so, I am not fine with it because most requests has GET-type, and for ...
Takeshi Tokugawa YD's user avatar
0 votes
1 answer
90 views

I want to add an API common prefix for all controllers, e.g. /api/v1. I am using inversify with the ...
Saiful Islam's user avatar
1 vote
0 answers
56 views

I'm deploying a Bun + Express application to Vercel. Locally, my Express app works perfectly with routes defined in separate files and imported into index.ts. However, on Vercel, the deployment ...
Dev Ayush's user avatar
  • 143
0 votes
1 answer
112 views

This is TypeScript code that I wrote a couple of years ago: ...
Ethan Burrow Fairweather's user avatar
-4 votes
1 answer
53 views

When I work in development mode via nodemon, there are no problems. After that, I started preparing the code for production. At first, the "tsc" command worked without errors, and then I ...
Roman Nozhenko's user avatar
Best practices
1 vote
3 replies
65 views

I’m trying to build an application that can download patient documents from Athenahealth, but I can’t figure out whether this is actually supported. The official API documentation is extremely limited ...
Vladimir Meliksetyan's user avatar
0 votes
1 answer
178 views

I am using HttpOnly Cookies for JWT authentication in my Angular v20 app. I have SSR enabled. During Login, the cookies are sent to the client. I have an ...
Asad Koths's user avatar
Best practices
1 vote
3 replies
78 views

So I am working on a MEAN stack project where in node I will emit the data to UI and in frontend I had some widgets ( as charts like gauge , line , pie and table ) where user can add dynamically ...
Vignesh's user avatar
  • 71
1 vote
1 answer
126 views

It's the same question as How do I extend the typings of Express.Application to give typings for app.locals but the suggested solution doesn't work for me. I have ...
Quentin's user avatar
  • 1,173
3 votes
1 answer
66 views

...
ahmad fakher's user avatar
2 votes
0 answers
96 views

I have a basic MERN app in production with a login system that always runs into either an ERR_CONNECTION_RESET or an ERR_CONNECTION_REFUSED AxiosError when first attempting to login after what it ...
user31641956's user avatar
0 votes
0 answers
62 views

Context I’ve implemented FIDO2 verification for login and signup on my Express.js website. Everything works perfectly in localhost, but in production, the fingerprint verification of my security key ...
Akese315's user avatar
2 votes
1 answer
108 views

How to add data from an input field in the browser to my array websites[name], and then display it in a html paragraph? server.js ...
user31709236's user avatar
0 votes
2 answers
106 views

I installed nodemon globally and locally I added it to the environment path. I tried to use flags but nothing works One month ago (last time I used it), it was ...
ABDULAZIZ HAMZAH's user avatar

1
2 3 4 5
1896