Hello_rails_react

In this project, i used the react-railsgem. This gem allows you to build React components as a part of your Rails JavaScript and serve it in a component, react_component, to be used in a regular ERB file.

Built With

  • Ruby
  • Ruby on Rails
  • PostgreSQL

Getting Started

  • Install Ruby on your local machine

  • Install Ruby on Rails

  • Clone this repository

    git clone https://github.com/iLynette/hello_rails_react.git
    
  • To get started, In the root directory run:

    gem install bundler
    

    Then run:

    bundle install
    

    To start the server run:

    rails s
    

    Open the browser with localhost:3000

After installing bundle

Please run the following commands rails db:create rails db:migrate rails s

Run App

bundle i
npm i
rails webpacker:install
rails webpacker:install:react

To track linter errors locally follow these steps:

Track linter errors run:

rubocop

Author

👩 Lynette Aluoch Acholah

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Thanks to my morning session partners, coding partners and teammates.

📝 License

This project is MIT licensed.