I added tests to my node js project using jest but for each test suite there's a beforeAll method that creates a new test server and connects to a mongo databas
I am just trying to write simple register/login system. I am trying to find if username exists. Here is the steps : Go localhost:3000/users/register page Fill i
I've created a simple RESTapi with express and for file upload I'm using multer. Creating a new item / post works. My issue is with the put route and the functi
I have tried to connect to MongoDB server using the below-mentioned link but I am getting an error, I have entered the correct password and dbName but it couldn
My frontend is localhost:3000, and my GraphQL server is localhost:3333. I've used react-apollo to query/mutate in JSX land, but haven't made a query/mutation f
I need to access the raw body of the webhook request from Stripe in my Nest.js application. Following this example, I added the below to the module which has a
I'm programming chat app using socket.io . Chatting works well but trying to get 'http://myurl/upload', it give me the error"cannot GET//uplad". What is the pro
const Validator = require("validator"); const isEmpty = require("../validation/is-empty"); module.exports = function validateRegisterInput(data) { let errors
I am facing an error while making the POST login request. I had deployed the frontend on Netlify here and the backend on Heroku here. This is my backend logs ht
I'm trying to initialize a simple express app with the following code: const express = require('express'); const app = express() const bodyParser = require('bo
*I have been trying to upload my MERN app to Heroku and have been getting these error codes. The web application will run on my local host but the application i
I'm having problems setting up an S3 and IAM so that I can upload media files to the bucket. I've been following a video (https://www.youtube.com/watch?v=yGYeYJ
I am using a node server to handle all my push notifications services like gcm and apn. I have 2 different servers. One is running Meteor and another is runnin
The code is set up this way: var express = require('express'); var router = express.Router(); var mongo = require('mongodb').MongoClient; function getData(){
I'm using POSTMAN dev tool to test this API : http://localhost:3000/users and I have this express.js script : const express = require("express"); const cors
I am trying to manage a react app with react router and node js server my router in react: <BrowserRouter> <Switch> <PrivateRoute tok
mongoose.connect(process.env.DATABASE_URL, {useNewUrlParser: true}); const MyModel = mongoose.model(mymodel, new Schema({ name: String })); This creates a dat
So I'm trying to follow the security best practices and I'm sending my JWT token over my React app in a only-secure http-only cookie. This works fine for requ
I'm currently trying to get COVID-19 from the Covid Data Repository by Johns Hopkins. https://github.com/CSSEGISandData/COVID-19 The repo get updated with new d
I have written this function to do update in dynamo table const updateTask = async (req, res) => { try { const { existingTaskText,updatedTaskText } = r