Skip to content

omkz/rails-react-blog

Repository files navigation

Tech Stack

  • Ruby 2.6.4
  • Ruby on Rails 6.0.1
  • PostgreSQL 9.5
  • React 16

Installation

Requirements

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

Setting up the development environment

  1. Get the code. Clone this git repository:
git clone git://github.com/omkz/rails-react-blog.git
cd rails-react-blog
  1. Install the required gems by running the following command in the project root directory:
bundle install
  1. Create and initialize the database:
bundle exec rake db:migrate
  1. Install the required javascript library
yarn --cwd client install
  1. Start the development server:
foreman start -f Procfile.dev

railsblog! Screenshot