Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omkz/rails-react-blog
Blog application with Rails and React.js
https://github.com/omkz/rails-react-blog
postgresql rails react react-router reactjs ruby ruby-on-rails
Last synced: about 2 months ago
JSON representation
Blog application with Rails and React.js
- Host: GitHub
- URL: https://github.com/omkz/rails-react-blog
- Owner: omkz
- Created: 2019-11-13T05:36:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T16:01:10.000Z (almost 2 years ago)
- Last Synced: 2024-04-12T16:14:58.558Z (9 months ago)
- Topics: postgresql, rails, react, react-router, reactjs, ruby, ruby-on-rails
- Language: Ruby
- Size: 1.33 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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](https://rbenv.org) is recommended.
* [**RubyGems**](http://rubygems.org/)
* **Bundler**: `gem install bundler`
* [**Git**](http://help.github.com/git-installation-redirect)
* **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 environment1. Get the code. Clone this git repository:
```bash
git clone git://github.com/omkz/rails-react-blog.git
cd rails-react-blog
```2. Install the required gems by running the following command in the project root directory:
```bash
bundle install
```3. Create and initialize the database:
```bash
bundle exec rake db:migrate
```4. Install the required javascript library
```bash
yarn --cwd client install
```5. Start the development server:
```bash
foreman start -f Procfile.dev
```![railsblog! Screenshot](https://raw.githubusercontent.com/omkz/rails-react-blog/master/public/screenshot.png)