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.
Torkil Vatne13,240 Points
Building 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:
- Bootstrap/Material UI
- Express (not so much)
Sorry the long text, I really appreciate feedback!
Kyle Case44,857 Points
I'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.