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.

express
0 votes
0 answers
5 views

Printing to a Local Printer Hands-Free with node/express/react

I'm working on a project wherein I'd like to interface with a local printer through node. Everything I've read implies that this is impossible without some user interaction but I'm not sure if this ...
Harry's user avatar
  • 1
0 votes
0 answers
7 views

Is there a way to gracefully shut down Apollo Server that's built on top of Deno and Express?

Apollo Server has a plugin called ApolloServerPluginDrainHttpServer that helps shut down the server gracefully when built on top of Node's http.Server. Is there a way to gracefully shut down the ...
Mix Master Mike's user avatar
-1 votes
0 answers
16 views

How do I create charts on my javascript website using data from mySQL database. Using EJS front-end

I am making a website where I can enter data for golf course greens, and then analyze it. I am using express in my backend to route to my ejs pages. I am also using a mySQL database to store the data. ...
Ben Northridge's user avatar
0 votes
0 answers
11 views

pg-mem with typeorm for in memory jest testing

i have a express app i am creating in typescript. I also am using typeorm as my orm for connecting to the database and actioning on it. I already have jest unit tests but i also wanted to create ...
Attiq Ahmed's user avatar
1 vote
1 answer
33 views

Problemes with getting data from server in react app

I made a server with following REST JSON API: Get list of classrooms /api/v1/room Get dates when certain classroom is booked /api/v1/room/[roomId] Get list of teachers /api/v1/person Book(Post) a ...
Liron's user avatar
  • 11
0 votes
1 answer
18 views

How do I specify which HTTP method should be used in a redirect in my express application?

I have a NodeJS/Express application where I am using PassportJS for authentication. I have the following routes: router.get("/profile", isUser, (req, res) => { res.render("profile&...
Oscar R's user avatar
  • 426
1 vote
2 answers
21 views

updating related relations in database

i have created groups , which has members , each member has a group array displaying which they are part of . if i delete a group i want that user's group array also updates. i am using express and ...
Pakshal Shah's user avatar
0 votes
0 answers
13 views

How to force basic auth prompt on every refresh with express-basic-auth? [duplicate]

I'm using the express-basic-auth library to protect a readme route in my Express.js application. I want the browser to prompt for credentials every time the user refreshes the page, closes and reopens ...
Jaskaran's user avatar
-8 votes
0 answers
23 views

Verifying Student From a Particular University [closed]

I am building a web application where I need to verify student based on their student id . How do i know that particular student belongs to which university and the student id is legit or not ? I am ...
pradeep21's user avatar
0 votes
0 answers
15 views

how to download file from express res.download() using axios [duplicate]

client.js // using vue function downloadFile() { api .get(`/download`, { responseType: "blob", params: { fileName: downloadFilename.value }, // ...
user3705497's user avatar
0 votes
1 answer
32 views

How to handle multiple requests (Express.js) with mongodb insert operation

Context I am following a tutorial which is titled "Building a Secure User Registration and Login API with Express.js ,MongoDB and JWT" It uses express bcryptjs jsonwebtoken mongoose to build ...
Uberbaza's user avatar
-1 votes
0 answers
17 views

How to use Nginx as reverse proxy for node js app?

Am trying to use nginx as reverse proxy for my simple node app , however am keeping getting 404 error on proxy side while locally on http://127.0.0.1:3000 everything is OK. here is my basic node app ...
user889030's user avatar
  • 4,604
0 votes
0 answers
31 views

Express middleware not receiving data from service function, instead data goes directly to client (Postman)

I'm encountering an issue with my Express application where data fetched by a service function is bypassing the middleware and going directly to the client (Postman). Here is my setup: I have a ...
Umakanth Pendyala's user avatar
0 votes
1 answer
31 views

How to create a item in the Todo list

When you make a new item on the todo list it makes a new row but when you make a second one instead of making a new item on the todo list it changes the previous one. How would you go around making a ...
TroglodyteTerry's user avatar
0 votes
0 answers
9 views

Cookie gets removed on refreshing or reload -- express/cookie/jwt

Cookie gets removed on refreshing or reload: I am using express js to set cookie and react as a frontend: Can anyone explain why coocki gets deleted after refreshing page?....please help as soon as ...
Arjun Patel's user avatar

15 30 50 per page
1
2 3 4 5
6384