How to make react and rails app automatically

Tomoharu Tsutsumi
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!!

--

--

Tomoharu Tsutsumi

Senior Software Engineer at two industry-leading startups ( Go | Ruby | TypeScript | JavaScript | Gin | Echo | Rails | React | Redux | Next)