Check out example codes for "ruby create engine using rspec and dummy". It will help you in understanding the concepts better.
Code Example 1
rails plugin new blorgh --dummy-path=spec/dummy --skip-test --full
Learn ReactJs, React Native from akashmittal.com