Skip to content
No description, website, or topics provided.
JavaScript CSS Ruby HTML CoffeeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
vendor/assets
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Newsroom

Check this out on Heroku # https://glacial-escarpment-19018.herokuapp.com/

  • Newsroom app streamlines the newsroom workflow and gives journalists ability to work online.
  • Localize this in Urdu, Hindi, Punjabi to use as CMS in Pakistan and India.
  • Potential localization in Arabic, Persian and Pashto.
  • Target audience for this app is small and medium sized newsrooms and freelance bloggers and journalists.

User stories:

  • Reader flow. Reader can read unlimited stores and comment via Facebook, Twitter, disqus account. User can also share the story on their social media accounts.

  • Reporter: Reporter can write an article and has ability to CRUD their own articles only.

  • News Editor: Editor can CRUD any article and create new article. Editor also has manage panel where they can search of stories and look for all stories.

  • Admin can assign user rules into user database(stretch).

Wireframes, ERD and Data Models:

https://github.com/kashifali554/newsroom_app/wiki

Tech

  • Front-end: Bootstrap, Sass
  • Back-end: Ruby on Rails
  • Auth: Devise, CanCanCan
  • Other: Social Share, Trix Editor, Disqus comments thread.

Best Code:

if user && user.role == 2
  can :manage, :all
end

if user && user.role == 1
  can :read, :all
  can :update, :destroy, Article do |article|
    article.user == user
  end
  can :create
  alias_action :create, :read, :update, :destroy, :to => :crud
  can :crud, Article do |article|
    article.user == user
  end
end

if user && user.role == nil
  can :read, :all
  can :create, Comment do |comment|
    comment.user = user
  end
end

Future Development ideas

  • Make URL Pretty
  • Add badges on profiles
  • Make tags clickable.
  • trending stories with view counts in aside.
  • Add more features in Manage panel.

Links

You can’t perform that action at this time.