An Awesome Blog System for Rails developer

The post introduce my personal website Pblog https://huangwenwei.com

PBlog

A awesome personal website based on Ruby on Rails and Semantic-UI

Features

  • SEO friendly
  • Manage you posts and resume
  • Simple and elegant responsive UI
  • The source code clearly for Ruby on Rails to study
  • Manage comments, contract messages on you own without any limit

Getting Started

Now, with a few command and modify some description, you can own a geek personal webpage, here we go.

Prerequisites

PBlog is a Ruby on Rails webApp. We assume a live *nix service with Rails environment.

  • Ruby (>2.3.1)

  • Mysql (> 14)

  • Nginx

  • pow a tool for MacOS user developer Rack App

    not necessary (Zero-configuration Rack server for MacOS)

installing

A step by step introduce to run in local machine and deploy to server. Deadly simple!

// modify config/database.yml configuration
git clone https://github.com/wenweih/PBlog.git
cd PBlog
bundle install
rails db:setup

Development

  • Pow: ln -s the_path_of_PBlog ~/.pow/blognow you can visit blog.dev
  • or rails snow you can visit localhost:3000

Production

// modify config/database.yml configuration
git clone https://github.com/wenweih/PBlog.git
cd PBlog
bundle install
RAILS_ENV=production rails db:setup
RAILS_ENV=production rails assets:precompile
RAILS_ENV=production rake secret
// after generate a random string, replace config/secrets.yml with is
RAILS_ENV=production puma -C config/puma.rb

Screenshot

PC

An Awesome Blog System for Rails developer_第1张图片
home index
home index

Mobile

An Awesome Blog System for Rails developer_第2张图片
home index
An Awesome Blog System for Rails developer_第3张图片
home index

你可能感兴趣的:(An Awesome Blog System for Rails developer)