365体育足球滚球比分

Questions tagged [express]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

React app with express server shows just blanc page

I have one page react app without routing. It works fine. Now I'm trying to host it on heroku, that's why I addded express server. I run server with 'node server/server.js', and after that i was ...
0
votes
0answers
5 views

How to access an API endpoint through a token using headers?

Currently I have a public api implemented, anyone can access it. My intention is that the user now pass a token through the header so that they can access the data from the endpoints. But I don't know ...
0
votes
0answers
5 views

I want to print out this countryName keys value and also index to using mongoose query

//here is my code const getCountryName = async function(req,res){ let getCountryData = await DataModel.find({},'CountryName') res.send(JSON.stringify(getCountryData)) ...
0
votes
1answer
16 views

graphqlHTTP is not a function

Here is my simple graphql experess app const express = require('express'); const graphqlHTTP = require('express-graphql'); const app = express(); app.use( '/graphql', graphqlHTTP({ ...
0
votes
0answers
5 views

How do you deploy api made with express in create react app

I have a simple api created with express.js. When ever i try to push to Heroku it get stuck at this point? remote: [4/4] Building fresh packages... remote: Done in 16.30s. remote: ...
0
votes
0answers
14 views

Express. Catch All creates ugly url. Breaks react router Redirects

I'm using the catch all method with express and react-router. Express will serve the html file and react router will manage components. I have used this app.get('/*', (req, res) => { res....
0
votes
0answers
7 views

Error on Heroku while uploading images to mongoDB using Multer

I have developed an app where the user can upload images using multer and can retrieve/view them on the home screen. I'm using MongoDB as my database, locally it works perfectly. Even when using ...
0
votes
0answers
16 views

Intermittent Axios delete 404 error but always deleting from database

My Axios delete function below is catching a 404 error intermittently even though it is always deleting from the database. const api = "http://localhost:4000/api/message"; export const ...
0
votes
0answers
5 views

I have three different forms with different routes. I want to store all the data into mongodb once all the foms are filled and submitted

Im having personalinfo.js, experience.js and education.js similarly three forms are there. I want to store the values of above the three forms at final submit into database instead of storing the data ...
0
votes
0answers
4 views

load tooltip.io in node.js application

Can somebody tell me if there is any way to "updateUserData" in tooltip.io from a node.js app What I need to do: Tooltip.API.updateUserData({ userStatus: "upgraded", age: ...
0
votes
0answers
4 views

Execute conditional statement after loop finishes in nodejs

I have a for loop for checking multiple uploaded image's aspect ratio, after completing the loop i want to check ratio in if else condition to redirect user. Problem is the conditions are checked ...
0
votes
2answers
9 views

How to interpolate with variables in pug?

I have a pug view section#about.about .container .about__inner .about__content h3.about__title About me h2.about__bigtitle ...
0
votes
0answers
10 views

Do an update and after a delete

I've had a problem that's been bothering me for a long time now. I have a database in MariaBD (with WAMP) and an API in expressjs. In my database, I have two tables: table "menu" and table &...
0
votes
0answers
14 views

Change the download path for Chrome/Chromium using Puppeteer

Iam using ubuntu 16.04 LTS and working on scrapping project and trying to download a file using pupeteer But I am unable to change the download location in both chromium/chrome. I have already tried ...
0
votes
2answers
17 views

Getting Timeout error while connecting MongoDB Atlas with Mongoose

I am trying to connect to my database on MongoDB Atlas using mongoose. But every time it's giving me the following error: (node:2327) UnhandledPromiseRejectionWarning: Error: queryTxt ETIMEOUT ...

15 30 50 per page
1
2 3 4 5
4408