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 trialJONATHAN MOO
9,224 PointsIs there a React-Redux course or workshop, with connection to a database as an example?
I have went through hours and hours of content, but I have yet to find a valid example of how we can use React-Redux with a database, and it can be any kind of database.
The main purpose is to know how are the code and folders structured in such a way that its scalable and a good standard practice for projects.
Will appreciate if anybody can share any information on this as well. Thanks!
1 Answer
Zack Lee
Courses Plus Student 17,662 PointsSo there is a react redux course which walks through converting a react project to run with redux. However, since react-redux is a client side application it cant directly interface with a database. You need a back end to request and retrieve data from a database. Theres a great course walking through building an api with express and mongodb. You woyld then cobsume that api with your react-redux app. The course will not walk you through that specifically but its not too difficult. I built a simple blog posting app which uses react on the client side and then stores and requests data from a mongo database through an express rest api. Once you know how to build an api its fairly simple to access it with whatever client side framework you want to use.