I found an open source Ruby on Rails project that is created with command rails new myapp --webpack=react
but I am only interested in the React part. How can I seperate it from the rest and enable it to run on its own?
The link to repo: https://github.com/vigetlabs/storyboard
For what I have done so far; React related files reside in directory ./app/javascript/pack/
but npm script triggers Ruby application first. Ruby, somehow, starts the React application. This is how far I could come.
/app/javascript/src
to the newly created react app. maybe packs
folder too.package.json
file content to get all packages.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.