Giter Club home page Giter Club logo

active_blog's Introduction

ActiveBlog is a work in progress.

ActiveBlog is Rails engine written to satisfy minimal blogging requirements.

The ActiveBlog BlogPost model:

create_table :blog_posts do |t|
  t.string :title
  t.string :body
  t.boolean :draft
  t.datetime :published_at
  t.string :cached_slug
  t.string :custom_url

  t.timestamps
end

It is by no means a full blogging engine. There are no categories, no comments, and certainly no tagging.

ActiveBlog has the following dependencies:

  • ActiveAdmin, for the backend
  • Devise, for admin authentication
  • Redcarpet, for markdown rendering
  • PostgreSQL, for storage

How to install ActiveBlog

Add the following line to your Gemfile

gem 'active_blog'

Run Bundler

bundle update --source active_blog

Run the generator

./script/rails generate active_blog:install

Follow the installer's directions

Install the migrations

rake db:migrate

Start your server with foreman or rails s and visit your new blog located at:

http://localhost:5000/blog

To create a new blog post, visit the admin area located at:

http://localhost:5000/admin/blog_posts

How to hack on ActiveBlog

Setup the development and test databases

rake app:db:setup
rake app:db:test:clone

Running tests

rake test

TODO

  • The ActiveAdmin BlogPost form should allow users to upload content to S3
  • Document Parent App Hooks (content_for :sidebar, content_for :title, content_for: head)
  • Missing ActiveAdmin UI tests.

active_blog's People

Contributors

mchung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ccingiz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.