Sample application presenting React / Redux / Rails / ActionCable integration.
- Rails 5.0
- Ruby 2.3
- React 15.1.0
- Bootstrap 3
- PostgreSQL 9.6
In order to setup this application, you need to have PostgreSQL database installed. if you don't have it, then below you can find installation notes.
Run setup script as presented below
./bin/setup
rails s
npm start
You can follow the instructions on PostgreSQL site or use Homebrew.
- Follow instructions to install on Homebrew site
- Type
brew install postgresql
- Create your DB user
createuser -d -P postgres
You can also use Postgres.app and follow Configure path section
Create config/database.yml
:
cp config/database.sample.yml config/database.yml
Create database:
rake db:setup