CodeBlog is a robust blog site built using ASP.NET MVC, designed to facilitate seamless blogging with features such as user authentication, admin and super admin roles, comment sections, search functionality, filtering, pagination, and gated content. Only logged-in users can access certain parts of the site, ensuring a secure and personalized user experience.
- User Roles: Different roles for users, admins, and super admins.
- Blog Posting: Admin and super admin can post blogs with ease.
- Like and Comments: Users can like and comment on blog posts.
- Search and Filter: Powerful search and filtering options for finding blogs.
- Pagination: Efficient pagination to navigate through multiple blog posts.
- Gated Content: Only logged-in users can access certain parts of the site.
- Responsive Design: Optimized for both desktop and mobile devices.
- .NET Core SDK
- SQL Server or any other compatible database
- Visual Studio or any other preferred IDE
-
Clone the repository
git clone https://github.com/yourusername/CodeBlog.git cd CodeBlog -
Set up the database
- Update the connection string in
appsettings.jsonto point to your SQL Server database.
- Update the connection string in
-
Run the migrations
dotnet ef database update
-
Build and run the application
dotnet build dotnet run
-
Open in browser
- Navigate to
http://localhost:7214to see the site in action.
- Navigate to
- Login: Admins and super admins can log in using their credentials.
- Post Blog: Use the dashboard to create and publish new blog posts.
- Register/Login: Users can register or log in to their accounts.
- View Blogs: Browse through the blog posts.
- Comment: Engage with the content by leaving comments.
- Search and Filter: Use search and filter functionalities to find specific blogs.




