How to make react and rails app automatically
1 min readMay 31, 2020
It is so easy, but I didn’t know and it is forgettable, so I’m going to take a note. Database is postgresql. Ruby version is 2.5 and Rails version is 5.2.
Create folders
rails new app_name --webpack=react --database=postgresql
and this.
Start react and rails
bin/webpack-dev-server
and
rails s
piece of cake!!