Comments (4)
In the hindsight, I didn't specifically set the port within my process.env
file, so it was automatically set to 5000, while the further code refers to a port 3000.
Still, I feel like it's an overlook on the tutorial's part with mixed ports that can confuse less experienced developers, especially because create-react-app
will automatically set the front-end's port to 3000, which collides with the 3000 port provided for the backed.
I'm gonna check tomorrow if it fixes my issue, but even though, I think it would be a good idea to alter the tutorial so it used port 5000 exclusively for back-end.
from mern-stack-example.
I tested and yes, it was the issue with ports.
I'm going to keep the issue open because It's something that should be fixed/rephrased in the tutorial. Ideally, all of the axios methods should be set with the port 5000, since 3000 is already taken by create-react-app
.
Additionally, all of the navbar.js
section is inside recordList.js
's code block. It's just a visual thing, but it's an issue nonetheless.
from mern-stack-example.
Hi @dawidmucha
Thank you for highlighting this, we are on it.
from mern-stack-example.
Thank you so much for reporting this @dawidmucha. We have fixed the article as you recommended, you can see it live right now. https://www.mongodb.com/languages/mern-stack-tutorial
from mern-stack-example.
Related Issues (11)
- TypeError: Cannot read property 'db' of undefined HOT 1
- Attempted import error: 'withRouter' is not exported from react-router HOT 4
- React hooks Functional Components? HOT 2
- Mern Tutorial web page has an old record.js sample code HOT 2
- Several issues with details HOT 1
- Add a how to run section to README.md
- App opens to a blank screen HOT 1
- navbar.js button not working HOT 1
- Needs tags HOT 1
- TypeError: Cannot read properties of undefined (reading 'collection') HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mern-stack-example.