Since I familiar with Rails and React I put them together in a new kind of 'Hello World!' app. This exercise is going to have you create a React front-end with a Rails back-end and connect them to display a random message.
- Implement a connection between a Ruby on Rails back-end and React front-end.
- Understand pros and cons of different approaches of connecting Ruby on Rails back-end with React front-end.
To get a local copy for this project and running follow these simple example steps.
$ rails new hello-rails-back-end --api --database=postgresql
$ cd hello-rails-back-end # Move into the application directory
$ https://github.com/kingqabil/hello-rails-back-end.git
$ cd hello-rails-back-end
$ rails db:create # or
$ rake db:create
- Rubocop gem
$ bundle init
$ bundle install
- Run linter
$ rubocop .
- In auto-correct mode, RuboCop will try to automatically fix offenses:
$ rubocop -A # or
$ rubocop --auto-correct-all
This project is build with:
👤 Hamza Tarar
- GitHub: @Lockless404
- Twitter: @hamza_tarar10
- LinkedIn: Hamza Tarar
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.