Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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