Github/Demo
App can be viewed at: http://stormy-crag-54499.herokuapp.com/
Github code is at: https://github.com/hyanying/blog
Github code is at: https://github.com/hyanying/blog
About
• This app is a private blog; blog posts are not accessible for public visitors.
• Public visitors can sign up to log in as users.
• Only signed in users can access and view the blog posts.
• Only users designated as “Admin” can create, edit and delete blog posts.
• Only users designated as “Admin” can edit and delete other users.
Notes
• User authentication is coded from scratch, following Codecademy’s Ruby On Rails: Authentication online course
• Each blog post on the home page shows only the first 200 words of the post.
• “Admin” role user has the following permissions
◦ View blog posts
◦ Create blog posts
◦ Edit blog posts
◦ Delete blog posts
◦ User management
▪ View users
▪ Edit users’ email and names
▪ Delete users
• “User” role user has the following permissions:
◦ View blog posts
• Visitors who are not signed in will be redirected to the login page if they visit the blog home page url “/”
• Users who are not “admin” role users will be redirected to the blog home page if they visit the user management page url “/users”
• The first “Admin” role user cannot be deleted from the user management page.
• The blog is mobile responsive.