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 trialTorkil Vatne
13,240 PointsBuilding an eCommerce application (with React)
I want to start building eCommerce websites (preferably in React and Redux), but I don't know where to start. I plan to start off by building a simple shopping card application without user management.
I've found payment options like Switch Payments (https://switchpayments.com/), a storefront application on Github (https://github.com/yoonic/nicistore), react shopping cart examples (http://www.fullstack4u.com/react-js/10-react-js-shopping-carts-demos/) and different packages for design, but I'm not sure if they are the most practical tools for me to start off with.
Are there any recommendations on packages/tools/frameworks to use when developing this kind of application (regarding payment, authentication, mailing, database or dashboard for the owner)?
Some of what I've worked with before than might be relevant:
- React
- Redux
- Bootstrap/Material UI
- Firebase
- MySQL
- Express (not so much)
Sorry the long text, I really appreciate feedback!
1 Answer
Kyle Case
44,857 PointsI'd recommend checking out Stripe (stripe.com) for managing payments. Firebase has apis to help with user management.
I personally do not have as much experience with Firebase. So if it were me, I'd use Ruby on Rails for the backend. There are several really easy to use gems for managing users, payments, etc. The Rails courses on Treehouse are a good way to get started. I'd also recommend the book Agile Web Development with Rails 5 (https://pragprog.com/book/rails5/agile-web-development-with-rails-5). Throughout that entire book you create a full-featured e-commerce application using the most current/advanced rails features.
I also would try to evaluate how much React is really needed for your e-commerce experience. For most e-commerce sites, the backend can end up being the bulk of the work. The only stateful parts are the cart, and maybe comments/ratings. You can manage all of this on the back end with Rails instead of using React also.
Torkil Vatne
13,240 PointsThank you for the answer! I'll check out the courses on Treehouse and take a look at the book too.
Henning Bang Halvorsen
16,239 PointsHenning Bang Halvorsen
16,239 PointsThis was an interresting post! I would also like to read an answer to this!