Create a new rails in a current directory

$ rails new .

What you actually need

rails new --skip-test --webpack=react --skip-action-mailer --database=postgres

Scaffolding a new resource (controller, model, views, routes)

$ rails generate scaffold name attribute:type
$ rails g scaffold name attribute:type

New controller (with views)

$ rails g controller name

Start a dev server

$ rails s

Start a development console

$ rails c