Skip to content

Bastien-Durand/Discussion-Board

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby version: 2.7.1

Deployed via Heroku,

This was my first project deploying to Heroku, there were a few hiccups due to how bootstrap was initially installed, but thankfully the issues with deploying were sorted promptly

https://discussion-board-project1.herokuapp.com/

Features

  1. Create Community
  2. Create Post
  3. Create comments
  4. Create an account
  5. Have a bio if you route to user account
  6. See personal posts by user account
  7. Delete own account
  8. Cannot create community unless logged in
  9. Cannot comment unless logged in

Features to come:

  1. Admin accounts
  2. Total comments per post on posts show page
  3. Delete currently logged in users comments and not everyones
  4. Upvoting posts
  5. Upvoting comments
  6. Reporting posts
  7. Reporting accounts
  8. Reporting comments
  9. Links are currently just text in comments, posts or communities

Whats in the box:

Devise

Its a flexible authentication solution for Rails based on Warden. It:
  1. Is Rack based;
  2. Is a complete MVC solution based on Rails engines;
  3. Allows you to have multiple models signed in at the same time;
  4. Is based on a modularity concept: use only what you really need.

jQuery For Rails

  1. Currently supports jQuery 1, 2 and 3
  2. the jQuery UJS adapter

Ajax

  1. Ajax enables you to retrieve data for a web page without having to refresh the contents of the entire page. In the basic web architecture, the user clicks a link or submits a form. The form is submitted to the server, which then sends back a response. The response is then displayed for the user on a new page.

PostgresSQL

PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. I have no idea how it works or where it runs but i love it.

Migrations

I initially had alot of trouble with this part starting out, Thankfully i collaborated with some friends who work as full stack developers whom were excellent at explaining situtations where you would use certain migrations. As a result i created 5 migrations

  1. devise_create_accounts.rb
  2. create_communities.rb
  3. create_posts.rb
  4. add_summary_to_communities
  5. create_comments

Models

Existing Issues

  1. :destroy method within comments_controller.erb kept having routing issues when targeting specific a comment :id, commented out for the time being until fixed also will be re-enabled when users can only delete their own posts and comments

  2. :destroy method on post within controllers/post_controller.rb is redirecting to all communities path instead of existing community, also currently commented out for the time being.

  3. layout / Bootstrap cards not lining up with each other

  4. bugs bugs bugs bugs

The architecture of this application intends to follow Ruby on Rails conventions or at least trys to.
Any pull requests with suggestions or fixes would be much appreciated.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published