- Ruby 2.6.4
- Ruby on Rails 6.0.1
- PostgreSQL 9.5
- React 16
Before you get started, the following needs to be installed:
- Ruby. Version 2.6.4 is currently used and we don't guarantee everything works with other versions. If you need multiple versions of Ruby, rbenv is recommended.
- RubyGems
- Bundler:
gem install bundler
- Git
- A database. Only PostgreSQL 9.5 has been tested, so we give no guarantees that other databases (e.g. MySQL) work. If you're using OS X and have Homebrew installed, install it with
brew install postgresql
- Get the code. Clone this git repository:
git clone git://github.com/omkz/rails-react-blog.git
cd rails-react-blog
- Install the required gems by running the following command in the project root directory:
bundle install
- Create and initialize the database:
bundle exec rake db:migrate
- Install the required javascript library
yarn --cwd client install
- Start the development server:
foreman start -f Procfile.dev