Git Product home page Git Product logo

muskanmahajan37 / database-for-general-blog-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tahmeed-asaad/database-for-general-blog-website

0.0 0.0 0.0 1.71 MB

It is a database system designed for any dynamic blog website. Every user has an account, and by using the account he can do all the work(create a post, like, comment, reply, etc.) allowed by the administrator of the blog site. All of the user's full name, password, email, post, and other information can be stored in the database. Also, various information about posts, posts categories, comments, likes, replies can be stored in the database. This group project was built for an undergraduate academic course.

database-for-general-blog-website's Introduction

Database-for-General-Blog-Website

Table of contents

Introduction

It is a database system designed for any dynamic blog website. Every user has an account, and by using the account he can do all the work(create a post, like, comment, reply, etc.) allowed by the administrator of the blog site. All of the user's full name, password, email, post, and other information can be stored in the database. Also, various information about posts, posts categories, comments, likes, replies can be stored in the database. This group project was built for an undergraduate academic course.

Features

  • User can post articles
  • They can like,comment,reply on the posts
  • Every user's account information is stored in the database
  • User related admin can view all the user's details in the database, update them, and if needed he can also delete user id and other information.
  • Post related admin can view all posts, category, rating, likes on a post.
  • He can also find out how much likes/ comments the nth most liked/commented post has
  • He can edit the post, also how many comments, rating each post has can be easily found.
  • He can find out which post has the maximum activity.
  • He can find out in which category the highest-rated posts are present
  • Comment and reply related admin can find the post title, post body, comment of that post with the reply.
  • He can view all replies, comments of each post
  • He can find all the replies after a specific date
  • There are total 9 tables/entities in the database
  • 85 useful and distinct queries are demonstrated supporting these features

Technologies

  • Microsoft SQL Server
  • Microsoft SQL Server Management Studio
  • SQL

Relational Schema

1.user_info(user_id(pk),username,password,email)

2.posts(post_id(pk),date,post_title,user_id(fk),post_category,post_body,post_comment_count,post_rating,post_like_count)

3.post_likes(post_like_id(pk), post_id(fk),user_id(fk))

4.comment_likes(comment_like_id(pk),post_id(fk),comment_id(pk),user_id(fk))

5.reply_likes(reply_like_id(pk),post_id(fk),comment_id(pk),Reply_Id(Pk),user_id(fk))

6.Ratings(Ratings_id(pk),user_id(fk),Post_id(fk))

7.Comment(comment_Id(pk),post_ID(fk),user_id(fk),comment_date,comment_content,comment_like_count)

8.Categories(Category_Ids(pk),Category Name,Category_description)

9.Reply(Reply_Id(PK),post_id(fk),comment_id(fk),user_id(fk),reply_content,reply_date,Reply_like_count)

Entity Relationship Diagram

Database Diagram

Demo Screenshots

Setup

Mircosoft SQL Server and Microsoft SQL Server Management Studio should be setup properly. Then the sql queries present int the sql files can be executed opening the sql files with Microsoft SQL Server Management Studio.

database-for-general-blog-website's People

Contributors

tahmeed-asaad 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.