darwinz / rails-blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails Blog

Ruby on Rails blog setup

Pre-requisites

  • Ruby 2.4.1+
  • Rails 5.1.4+
  • PostgreSQL
  • NPM 5.3.0+
  • Node.js 8.5.0+
  • React 16.1.1+

PostgreSQL installation

Basic installation on Debian you can use the following documentation: wiki.debian.org/PostgreSql on Ubuntu you can use: help.ubuntu.com/community/PostgreSQL

Install / Setup

  • Clone this repository
  • Run npm install
$ npm install
  • Run bundle
$ bundle
  • Create db
$ bundle exec rake db:create
  • Run migrations
$ bundle exec rake db:migrate
  • Run db seed script
$ bundle exec rake db:seed
  • Start rails server
$ bundle exec rails s

Testing

  • Run the test suite
$ bundle exec bin/rails test test

About


Languages

Language:Ruby 76.8%Language:HTML 16.6%Language:SCSS 2.6%Language:JavaScript 2.0%Language:CSS 1.2%Language:CoffeeScript 0.7%