In this project, i used the
react-rails
gem. 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.
- Ruby
- Ruby on Rails
- PostgreSQL
-
Install Ruby on your local machine
-
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
Please run the following commands rails db:create
rails db:migrate
rails s
bundle i
npm i
rails webpacker:install
rails webpacker:install:react
Track linter errors run:
rubocop
👩 Lynette Aluoch Acholah
- GitHub: @iLynette
- Twitter: @acholah_lynette
- LinkedIn: lynette-acholah
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Thanks to my morning session partners, coding partners and teammates.
This project is MIT licensed.