GithubHelp home page GithubHelp logo

cmal / rails-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caseyscarborough/rails-blog

0.0 1.0 0.0 134 KB

A full featured blog engine written in Rails.

Home Page: rails-blog.caseyscarborough.com

rails-blog's Introduction

Rails Blog

This is a full-featured blog engine built using Rails 4.0 and Ruby 2.0.

A working copy of the application can be seen at rails-blog.caseyscarborough.com.

Dependencies

The application uses the following system dependencies:

  • Ruby 2.0.0 (possibly 1.9.3, but not tested)
  • Rails 4.0.0
  • Other gems listed in Gemfile

Installing the application

If you'd like to check out the application or contribute to it, follow the instructions below.

Clone the repository and use the bundle command to install dependencies.

git clone http://github.com/caseyscarborough/rails-blog.git
cd rails-blog
bundle install

Configuring the application

First, you'll want to edit the db/seeds.rb file and enter the information for your admin user's account.

User.create({
  username: 'caseyscarborough',
  email: '[email protected]',
  first_name: 'Casey',
  last_name: 'Scarborough',
  password: 'password',
  password_confirmation: 'password',
  is_admin: true
})

Update the config/config.yml file with the information about your blog (this step is optional).

title: Rails Blog
author: Casey Scarborough

Then proceed to migrate, create admin user, populate the database with sample data (optional), and run the rails server. See the lib/tasks/sample_data.rake file for more info about the database population task.

rake db:migrate db:seed db:populate
rails server

Then navigate to http://localhost:3000 in your web browser to see the application in action.

Running the tests

The tests are built using the RSpec testing framework and can be run by issuing the following command from the project root:

rspec spec/

To-Do

  • Come up with a suitable name for the project. Possible: Zen?
  • Add tags to posts.
  • Implement one-to-many relationship with User to Posts.
  • Develop admin 'dashboard'.

Contributing

Please feel free to contribute to the application by following the steps below:

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

rails-blog's People

Contributors

caseyscarborough avatar

Watchers

Yu Zhao avatar

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.