The Common Forum Project is a web application designed to facilitate discussions and knowledge sharing in forums of any size. The application is built using ASP.NET MVC and SQL Server. The system supports two types of users: Admin and End User, each with distinct roles and responsibilities.
- Manage Data: Admins have the ability to manage all the data within the forum, including articles, questions, and comments.
- Create Login: Users can register and create their own login.
- Add Individual Articles: Users can write and publish their own articles.
- Ask Questions: Users can post questions to the forum.
- Comment on Existing Questions and Articles: Users can provide comments and engage in discussions on existing questions and articles.
- Backend: ASP.NET MVC
- Database: SQL Server
- Frontend: HTML, CSS, JavaScript
- Libraries: jQuery
- Controllers: Handles the request and response cycle.
- Models: Represents the data and business logic.
- Views: Renders the user interface.
- Migrations: Manages database schema changes.
The database schema includes the following tables:
- Users: Stores user details including roles (admin, end user).
- Articles: Stores articles created by users.
- Questions: Stores questions posted by users.
- Comments: Stores comments on articles and questions.
Admins have full access to all features and functionalities of the system, including managing all articles, questions, and comments.
End users have restricted access. They can create logins, add articles, ask questions, and comment on existing articles and questions.
- Access: End User
- Steps:
- Navigate to the "Register" section.
- Fill in the registration form with necessary details (username, password, email, etc.).
- Submit the form to create a new user account.
- Access: End User
- Steps:
- Navigate to the "Articles" section.
- Click on "Add New Article".
- Fill in the article details (title, content, tags, etc.).
- Submit to publish the article.
- Access: End User
- Steps:
- Navigate to the "Questions" section.
- Click on "Ask a Question".
- Fill in the question details (title, description, tags, etc.).
- Submit to post the question.
- Access: End User
- Steps:
- Navigate to the article or question you wish to comment on.
- Scroll to the comments section.
- Enter your comment in the provided field.
- Submit to post the comment.
- Access: Admin
- Steps:
- Navigate to the admin panel.
- Use the provided options to manage articles, questions, and comments (edit, delete, etc.).
- .NET Core SDK
- SQL Server
- Visual Studio
-
Clone the Repository:
git clone <repository-url>
-
Open the Solution:
- Open the project solution in Visual Studio.
-
Update Database Connection String:
- In
appsettings.json
, update the connection string to point to your SQL Server instance.
- In
-
Run Migrations:
- Open the Package Manager Console and run:
Update-Database
- Open the Package Manager Console and run:
-
Build and Run the Project:
- Build the solution in Visual Studio.
- Run the project to start the web application.
The Common Forum Project provides a robust platform for forums of any size to manage discussions and knowledge sharing. With features tailored for both admin and end users, the application ensures smooth management of articles, questions, and comments.
For any further queries or issues, please refer to the project documentation or contact the support team.