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
11
questions
0
votes
0
answers
9
views
Express session is not saving data
I am trying to store information on my req.session object upon login and at a later time access this to verify if a user is logged in for middleware
I am aware there are several similar questions but ...
0
votes
0
answers
14
views
Having trouble loading a createObjectUrl() image in React
In my express/react project, I'm using the google places api to get city images. I send the image to the client as a blob, then use URL.createObjectURL(blob) to convert it into a url.
express:
...
0
votes
0
answers
6
views
Issues with Sending Video Files and Form Data from Flutter to Express Server Using Dio/Http Packages, android phone attached debugg mode
I’m having trouble uploading a video file and associated form data from my Flutter app to an Express server. Despite using both the Dio and http packages for HTTP requests, the server logs show that ...
0
votes
0
answers
22
views
EJS isn't being rendered
I'm making a rock, scissors, paper game on the backend of Node.js with express server, frontend.js client-side, index.ejs and main.css files. I firstly want to render a string line of the result of ...
0
votes
0
answers
16
views
Serving static files directly in Google App Engine with express
I have a standard Google App Engine environment and am trying to serve some static files for my create-react-app frontend, but I'm not able to do so without copying over the client/build/ files into ...
0
votes
0
answers
14
views
How to generate openapi doc in express
I'm making a REST service using javascript and express. I have some endpoints and I wanna create a swagger file to serve along with it. I'm using swagger-autogen to generate the swagger file. Even ...
3
votes
1
answer
30
views
Typescript: Variable inside Express RequestHandler becomes possibly undefined despite being checked in an if statement [duplicate]
I am creating a way to dynamically create routes before the server fully starts (meaning I'm not creating a route via a request lol that would be crazy), and I stumbled upon this interesting quirk.
...
0
votes
0
answers
7
views
Axios Post Still Blocked Even Though "Access-Control-Allow-Origin", "*" Set On server
In my backend I've set the following endpoint
router.post("/sign-in", async (req, res) => {
try {
//Extracting email and password from the req.body object
const { email, ...
-2
votes
0
answers
22
views
Why res.clearCookie() is not working after deploying to vercel?
First of all, everything works fine when running on localhost.
However, after deploying the app to Vercel when the user tries to log out it should clear cookies with res.clearCookie() but it doesn't ...
0
votes
0
answers
16
views
Aggregate vs Populate methods when to use one in nodejs Mongose
I am creating asset managment tool for warehouse and I have Warehouse , Asset, Category models. I want to get the overall stats of each warehouse like , total assets and how many of them is active or ...
0
votes
1
answer
23
views
Ways to create a login using nodejs
So i am learning nodejs i am trying to create a login
here what I made so far it works
it connects to mongodb and check if the field if same then changing the allow variable to true
any ways to create ...