Questions tagged [mern]

MERN stands for Mongo, Express, React and NodeJS.

Similar technology stack to , replacing with .

3381 questions
4
votes
4 answers

Running into problems installing MongoDB on MacOS Terminal

I am trying to install mongoDB as a macOS service but I am running to some errors I first put in the terminal brew tap mongodb Nothing really happens. But, when I run: brew install mongodb-community@5.0 I receive: Warning: No available formula…
4
votes
1 answer

Getting "TypeError: res.status is not a function."

TypeError: res.status is not a function at auth (D:\PROJECT\Web Application\Learning React\MERN STACK\middleware\auth.js:17:9). I am getting this error. The code is given below. const config = require("config"); const jwt =…
Waleed ur Rehman
  • 109
  • 2
  • 11
4
votes
2 answers

How to deal with race conditions in nodejs

I'm trying to work on a MERN full stack app where the frontend sends an api call to "/createDeckOfCards" to my nodejs backend. The goal is to click on a button to create a new deck of cards, then return the list of created cards. The parameter…
Reine_Ran_
  • 662
  • 7
  • 25
4
votes
1 answer

How to deploying a MERN stack app for use?

Goal: I want to deploy a MERN stack application for people to use it. Problems faced with directory structure: On the web I found some people telling that the React app should live inside the views folder which is inside my backend. Others say that…
4
votes
1 answer

Accessing .env variables outside of React app directory

My project's structure is: . ├── backend │   ├── node_modules │   ├── package.json │   ├── routes │   └── server.js ├── frontend │   ├── node_modules │   ├── package.json │   ├── public │   └── src ├── node_modules ├── package.json └── .env Where…
gnarois
  • 199
  • 1
  • 4
  • 11
4
votes
0 answers

Can Develop full MERN stack project in PyCharm?

I checked the JetBrains site and saw that PyCharm Pro have JavaScript support. Can I develop JavaScript only project in PyCharm Pro? Like a MERN stack project just with PyCharm. Or do I need to get WebStorm as well?
4
votes
2 answers

Possible to create pipeline that writes an SQL database to MongoDB daily?

TL:DR I'd like to combine the power of BigQuery with my MERN-stack application. Is it better to (a) use nodejs-biquery to write a Node/Express API directly with BigQuery, or (b) create a daily job that writes my (entire) BigQuery DB over to MongoDB,…
Canovice
  • 9,012
  • 22
  • 93
  • 211
4
votes
1 answer

How to deploy different MERN apps to digital ocean on a single droplet?

I've always used heroku to deploy my MERN apps. For the mongo db I use MongoDB Atlas, but in my job they want to migrate all the projects to DigitalOcean. I have several questions regarding this: Can I have mongoDB + nodejs backend + react app on a…
Enzo Barrera
  • 149
  • 1
  • 12
4
votes
2 answers

Communication between two separate Heroku (Node backend & React frontend)?

An app I'm creating uses the MERN stack (MySql, Express, React, Node). The frontend and backend end are each stored in 2 separate Githubs repos and are hosted on 2 separate Heroku instances. Both the frontend and backend deploy to Heroku…
Daniel S.
  • 113
  • 1
  • 12
4
votes
3 answers

React/Redux export default connect() doesn't seem to be connected to Provider

[Solved] Check my answers I'm learning MERN Stack via a youtube playlist https://www.youtube.com/watch?v=TO6akRGXhx8. I'm stuck when i reached the 28:04 where he forgot to connect his component with 'react-redux'. I followed how he resolve it but…
Ame M
  • 65
  • 2
  • 6
4
votes
1 answer

Cannot POST /api/users/register

I'm following a Udemy MERN stack course and I've got stuck in middle of a problem. There is no point in completing it before solving this problem, and in my searches I've found similar problems but a future point of the development. I just added the…
Ali Najdi
  • 83
  • 1
  • 1
  • 9
4
votes
1 answer

MERN stack with axios, response object returns html instead of json

So I'm setting up a 5 day weather forecast web app for practice interacting with APIs using the MERN stack. I'm using Axios.js to send and respond to requests; to make sure I have my back-end working, I started building that out first before…
Alex Friedman
  • 41
  • 1
  • 4
4
votes
1 answer

Click event won't fire on click on iOS devices but works as intended on desktop

I am having trouble having my React application to work optimally on mobile Safari. My app will PUT, POST, PATCH, and DELETE normally on desktop but won't do so on my iPhone. I've tried adding "cursor:pointer" and onTouchStart to my React component…
fj785
  • 133
  • 1
  • 10
4
votes
1 answer

React router changes url but not the view (only on Internet Explorer 11)

Basically everything works fine in Chrome and Firefox but on IE after clicking Link element only URL is changing, not the view. I know about Update Blocking issue in react-router, but I think it's not the case - as I sad, it failure only on IE. …
3
votes
4 answers

User name and picture don't show up on new post until page refresh

I have a MERN app that allows logged in user to create posts, with text and images. When the post is created the component re-renders and the post is adde automatically. The images and text from the post show up right but the username and user's…