Category "express"

Server responds with status 405

I'm running into a small issue with my "server". So while I'm trying to learn backend to frontend communication, I was messing around and trying to create an "a

how to configure webpack HMR with express

package.json scripts: "scripts": { "build": "webpack --config config/webpack.prod.config.js", "dev": "webpack --config config/webpack.dev.config.js &a

ExpressJS - Handle multiple pages/pagination

I am trying to handle multiple pages for a search with expressjs but it seems that doesn't work at all. I have the root and the query params /properties/search

How can i upload audio file to Cloudinary with Node.js?

i deeply need help with this audio file upload to cloudinary issue I have had for several days now. I tried many times to make it work, but i am still strugglin

TypeError: res.status is not a function

I'm making a function that permits me to upload a picture to imgur in my express api (nodejs), i'm encoutering an error when calling a function returning a prom

Error: ENOENT: no such file or directory, open When trying to access a directory with fs

I am not knowledgeable in nodejs or express, I have an API running on http://localhost:3000 and one of the endpoints call a function that uses file system to re

Failed to lookup view "index" in views directory

I am trying to learn node.js. I have the following code. var express = require('express'); var app = express(); var port = process.env.PORT || 5000; app.use

pm2 --ignore-watch not working

I have been using pm2 for some time now. Recently, I needed to add a custom log directory to my Express4 project called "actionLog". Since it is a directory tha

Create API for upload file to zoho catalyst using node js

I am creating API for upload file to Zoho Catalyst using Zoho Catalyst dependancy but i got an error that request body is wrong format. expressApp.post('/upload

include of header and footer in ejs file not working

guys I'm working on a node/express app in cloud 9. https://webdevcamp-miatech.c9users.io/ however, the include files in my home.ejs file are not working. I have

Sharp JS Dependency breaks Express Server on Elastic Beanstalk

I feel like this is useless as my conundrum has been discussed in several different threads, but nothing has worked. I have an ExpressJS/node server deployed to

How to set up the preact-render-to-string on the express

Please tell me how to set up the preact-render-to-string on the express. https://github.com/preactjs/preact-render-to-string#render-jsx--preact--whatever-via-ex

How to serve MP4 using an express Rest API server so it's compatible with mobile?

I have an express rest API server, and I am trying to use it to get an MP4 file from an S3 bucket and serve it. The video is displayed OK on my desktop, but doe

Push items into mongo array via mongoose

Basically I have a mongodb collection called 'people' whose schema is as follows: people: { name: String, friends: [{firstName: String, lastN

using req.headers.authorization gives Network error unable to reach server We could not introspect your endpoint graphQL Context failed: invalid token

I get the token from the login mutation and put it in the headers, but graphql server gives an error when trying to fetch that token using: const auth = req.he

node-express how to pass DATE params in URL query string and how to parse that

I have an app built on angular 2, a service in that sending http request to fetch the data from oracle DB, usind node-oracle db and express framework. I have b

How to use 'Decimal' as a field type in GraphQL schema?

I want to use Decimal as a type for latitude & longitude field in my GraphGL schema. But GraphQL provides only Float and Int. Is there is any package to sol

How to use socketio inside controllers?

I have a application created with Reactjs,Redux,Nodejs,MongoDB. I have created socketio in backend side. server.js const express = require('express'); const mo

the res.write in express displays the HTML element inside of it

I am not to web app dev and I started using express and I have this code app.post("/", function(req, res) { var crypto = req.body.crypto; var fiat = req.b

parcel build static/index.html × Build failed. Error: No transformers found for index.x-handlebars-template

I am trying to build an application with handlebars templating and express server. index.html file has all the handlebar templating within script tags with ment