Bootstraped-blog application with nested comments. Comments are added without refreshing thanks to AJAX.
-
Unregistered guest - Can visit articles, see comments and nested comments. To leave comment or create an article has to login.
-
Registered user - users can create articles and comments. Only articles and comments witch belongs to user can be deleted by them.
-
Administrator - can CRUD articles and comments.
- New article, - name, body with rich_text, image.
- Deleting comments, - administrator is allowed to delete everything.
-
Ruby & Ruby on Rails version
2.6.5 & 6.0.2
-
System dependencies
Ubuntu 18.04.4 LTS
-
gem 'bootstrap'
easy solution for basic RWD layout. Card system used widely around application. Usefull navbar with dropdown buttons.
-
gem 'gem "devise-bootstrap-views"'
Bootstraped devise forms.
-
gem 'devise'
my favourite gem. Extra fast and easy authentication system. Various additional features like: trackable - user login count, IP, last time visited and many more, confirmable - sending email with confirmation instructions and lot more.
-
gem 'will_paginate'
Pagination feature for articles.
-
gem 'faker'
funny and useful gem to seed database. Used to create users, articles and comments.
-
gem 'friendly_id'
enhance your ordinary URLs. Insted of having courses/12345 we can have courses/titleofmycourse.
-
gem 'dotenv-rails'
to keep personal/secret data safe during development.
-
gem "aws-sdk-s3"
needed to upload files to Amazon S3 bucket in production.