DEV Community

zetorbha
zetorbha

Posted on

I need help To build a React App

So I wanted to build a react app for customizing a t-shirt, like adding a logo, writing something, adding an image, and these sorts of things, but I don't have any idea how to get started with such things. Can you please suggest something?

Thank you.

Top comments (3)

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan • Edited

You can use Node.js which will connect to the database either MongoDB or SQL database and store the t-shirt details in the database and expose that as a Rest APIs and Use React at the front-end for accessing the API to add/update/delete the data.

This course is the best for learning React and this course is best for learning Node.js.

You can check out my this article to understand how you can store the image in database which uses MongoDB. Here is the source code for it.

You will need to add the extra fields in the schema in addition to the photo in this file like this

const ShirtSchema = mongoose.Schema({
  description: {
   type: String
  },
  image: {
    type: Buffer
  }
});

and append those details by taking the details from user in React App to the formData in this file

Collapse
 
orhanozkercin profile image
Orhan Özkerçin

I was exactly the same place with you couple of monts ago. I am not super developer but I can tell what I did.
First I suggest you to learn basics of ES6. If you are comfortable with Javascript and I can say that there are tons of courses and tutorials about React. I shared couple of them which I think nice to follow.

To understand basics of React: youtube.com/watch?v=Ke90Tje7VS0&t=...
This is another basics of React Series: egghead.io/courses/the-beginner-s-...

Personaly I didn't get comfortable after this series and I moved with codeacademy which is codecademy.com/learn/react-101

After those steps I moved with Udemy Course udemy.com/course/complete-react-de...

Lots of courses they are not showing Hooks, you'll see hooks everywhere but don't feel bad about it because in my opinion you really need learn class components first (old version of using hooks).

I'm not saying this is the best way but these are the steps I followed.

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan

This udemy course is the best course for Learning React from scratch along with Hooks