Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Need help setting up a MERN app.

What should be the best way to setup a MERN app. I want to use react and react router on the front-end with react-strap. And express on the backend. any help is greatly appreciated as im trying to do this for a long while.

1 Answer

Zack Jackson
Zack Jackson
30,220 Points

Not quite sure what the question is here. I usually start by setting up Express to serve the app and then set up Mongo. Then I'll build the components and connect them one at a time to achieve the desired action.

Treehouse doesn't really have a course or track centered around building with the MERN stack, but you should be able to pick up all of the components on their own and then piece them together. If not, there is a free youtube course by Traversy Media that covers the stack.

Do you use create-react-app?

Zack Jackson
Zack Jackson
30,220 Points

You can and I have before but I have my own boilerplate now with webpack setup.

Can you give the boilerplate. Would be a great help

Zack Jackson
Zack Jackson
30,220 Points

I don’t have it up on my github. You can make your own pretty easily with or without create React app.

I’d just follow this tutorial and then tailor it to your needs for your project.

https://youtu.be/PBTYxXADG_k