Questions tagged [react-fullstack]

React (sometimes styled React.js or ReactJS) is an open-source JavaScript library for data rendered as HTML.

375 questions
2
votes
0 answers

how to fix 503 error on heroku PERN stack?

This is my first attempt at building a full stack application, please help:(. This is my github repo. I'm following this tutorial, but I get a 503 error appearing in the chrome developer tools console when I'm trying to SELECT * FROM todo. I can…
2
votes
1 answer

How to deploy a full-stack node.js project

I have a full-stack node.js project and I don't know what the best practice is for deploying it. some information first: the app consists of: a next.js frontend a redis cache a postgres sql and a node.js backend the deployment shouldn't cost too…
2
votes
2 answers

Object is undefined when trying to fetch it using useContext()

I am very new to React and was trying to make a context in React so that in my notes app such that I can trigger my custom made alert for relevant user activity but when I am trying to use the values from the context using useContext I am getting…
Tushar Verma
  • 163
  • 1
  • 9
2
votes
0 answers

How to interact with python terminal in front end

I'm trying to convert a python project Im working on into a website. I was going to write it in Django/React. The project uses telethon to get messages from telegram, and to start the session, an interactive program runs in the python terminal.…
Jeff
  • 21
  • 2
2
votes
1 answer

How do I make server-side fetch calls?

I have a React web application which currently does fetch calls client-side to update a dashboard with live information (let's say current weather, as an example), meaning that with an increase in users it will cause unnecessary traffic calls and…
2
votes
2 answers

React useEffect returns empty array after fetching data with axios

I'm trying to fetch my data from an api I created, but it always returns an empty array. Here's my code const [orders, setOrders] = useState([]); const getOrders = async () => { try { const access_token =…
2
votes
1 answer

AWS ECS -Best way to deploy a full stack project(Task-Definitions, Clusters & Services)

Hi I want to deploy my full stack project to AWS ECS. If I understand it correctly there are 3 possibilities to deploy frontend and backend in ECS: Frontend and Backend are in the same Task-Definition, same Cluster and same Service (1…
Tölz
  • 766
  • 2
  • 8
  • 18
2
votes
3 answers

How to solve this MERN stack filebase64 error?

import FileBase from 'react-file-base64'; I get an error after I hover the triple dot indicator in VS Code. My setup has already been successful (other input fields have successfully inserted on the MongoDB Cloud) aside from the filebase64 part of…
daryl
  • 44
  • 1
  • 4
2
votes
1 answer

State leaking between React sibling components

I'm having an issue with React passing state between sibling components when one of the siblings is deleted. In my program, each component Plant has a state "watered", which has a default of "", and can be updated to the current day by pressing a…
2
votes
0 answers

General good practice folder structure for React + Nodejs (also to deploy on heroku)

I'm just practising building a fullstack project with Node (Express + GraphQL that connects to a MongoDB database on MongoDB Atlas cloud service) and React. I've separated my Node (Express) server files in a server folder, and React app in a client…
Hazzaldo
  • 515
  • 1
  • 8
  • 24
2
votes
0 answers

How to execute a query or call an api inside a middleware NODE JS

This is my index.js file. import "babel-polyfill"; import http from "http"; import express from "express"; import cors from "cors"; import bodyParser from "body-parser"; import middleware from "./middleware"; import create from…
Pariksha
  • 45
  • 1
  • 7
2
votes
2 answers

Having Trouble connecting MongoDB with Mongoose

0 I'm Following a MERN Stack tutorial from Udemy and I'm trying to connect mongodb with mongoose. The code I have configures is here: (db.js) const mongoose = require('mongoose'); const config = require('config'); const db =…
2
votes
2 answers

What is favicon.ico?

I am a new user to python flask and when I run my flask website on VS Code terminal i found that it is showing me that "GET /favicon.ico HTTP/1.1" 404 - I want to know what does it mean and why is it showing me the 404 error
j10
  • 2,009
  • 3
  • 27
  • 44
2
votes
1 answer

Using Gatsby.js for dynamic and static web apps

I am building a web app for a startup from scratch and have decided to use react and graphQl to query mongodb with nodejs as my backend. Gatsby.js seems to bundle react, graphql, and even redux with their framework, which is supported with many…
Aiden Faulconer
  • 411
  • 1
  • 7
  • 18
2
votes
1 answer

How does front-end (React) interact with back-end (Express)?

I'm building a full stack app using MongoDB, Express, React, and Node. I've worked on projects with only front-end programming and I've worked on projects with only back-end programming. I used ejs to create views for Express, so I'm not sure how it…
1
2
3
24 25