fiffty / react-treeview-mui

A Treeview UI written as a React Component (with material design)
MIT License
164 stars 51 forks source link

How to compile and run the example in my local PC? #10

Open agnaldo-p-silva-79 opened 7 years ago

agnaldo-p-silva-79 commented 7 years ago

Hello Guys!

I´m new in react and use of npm, so....., I´d like to know how can I compile and run a example in my local PC?

Thanks a lot!

ivansglazunov commented 7 years ago

As you can see, her in package.json scripts.build used react-scripts package. https://www.npmjs.com/package/react-scripts Author of current package use it for compile examples. Learn all about https://facebook.github.io/react/tutorial/tutorial.html for understand react. As alternatives to react-scripts you can use browserify or webpack. If you want create prototypes with many possibilities, for me simplest way - Meteor project. Has many guides for fust start. However, when it comes to a real large project, you often have to reassemble it to something else. https://guide.meteor.com/react.html Also you can use playgrounds as https://codesandbox.io.

agnaldo-p-silva-79 commented 7 years ago

Hi Ivan,

Thanks a lot for reply! I appreciate your explanation about issue!

Best regards! Agnaldo

Em ter, 12 de set de 2017 às 00:05, Ivan S Glazunov < notifications@github.com> escreveu:

As you can see, her in package.json scripts.build used react-scripts package. https://www.npmjs.com/package/react-scripts Author of current package use it for compile examples. Learn all about https://facebook.github.io/react/tutorial/tutorial.html for understand react. As alternatives to react-scripts you can use browserify, webpack. If you want create prototypes with many possibilities, for me simplest way

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fiffty/react-treeview-mui/issues/10#issuecomment-328720392, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQ4F_O-RCm1f-ReoHGh9X4JqKVmtVABks5shfTfgaJpZM4PThvn .

agnaldo-p-silva-79 commented 7 years ago

Hi Ivan,

Thanks again for reply my e-mail!

I'm trying to using the great react-treeview-mui to do something like that:

1- Read a NoSQL database mongodb 2- Create a treeview with "id" and "category" fields. 3- When select a node of treeview I'd like to fill one

for example in my HTML with content of field "content_html".

[image: Imagem inline 1]

Could you help me with this goals?

Thanks a lot!

Agnaldo

2017-09-12 6:33 GMT-03:00 Agnaldo Pereira da Silva < agnaldo.p.silva.79@gmail.com>:

Hi Ivan,

Thanks a lot for reply! I appreciate your explanation about issue!

Best regards! Agnaldo

Em ter, 12 de set de 2017 às 00:05, Ivan S Glazunov < notifications@github.com> escreveu:

As you can see, her in package.json scripts.build used react-scripts package. https://www.npmjs.com/package/react-scripts Author of current package use it for compile examples. Learn all about https://facebook.github.io/react/tutorial/tutorial.html for understand react. As alternatives to react-scripts you can use browserify, webpack. If you want create prototypes with many possibilities, for me simplest way - Meteor project. Has many guides for fust start. However, when it comes to a real large project, you often have to reassemble it to something else. https://guide.meteor.com/react.html Also you can use playgrounds as https://codesandbox.io.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fiffty/react-treeview-mui/issues/10#issuecomment-328720392, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQ4F_O-RCm1f-ReoHGh9X4JqKVmtVABks5shfTfgaJpZM4PThvn .

ivansglazunov commented 7 years ago

RTFM

If you read the tutorial on javascript and understand it. If you read the full react documentation, and understand it. If you read the full meteor documentation and the meteor + react guide, and understand them. Come here, read the documentation and examples of the package, they will be clear. Together, these materials give exactly 100% of the answer.

When you collect the finished code, and in it something will not work, there are communities where programmers help each other. For example freecodecamp. It is better to publish a question with a repository of code or playground and a clear statement of what it is, why, how it seems to you where the problem is.

Issue in the package - a place to discuss the package, its improvements, bugs, problems, opportunities.

tuncatunc commented 7 years ago

@ivansglazunov @fiffty I want to migrate it to mui 1.0 beta. Can you please show me how to build demo application with the modified code. Thanks