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
95,755
questions
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 ...
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 ...
-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.
...
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 ...
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 ...
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&...
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 ...
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 ...
-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 ...
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 },
// ...
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 ...
-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
...
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 ...
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 ...
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 ...