Skip to content

microsoftdotnetdevelopment/News-Portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Portal

News Portal is a dynamic web platform for browsing and managing news across categories like sports, fashion, and more. It includes an admin panel for content management, a user login system, and a contact page for inquiries.

Features

  • Admin Panel: Manage news articles and user accounts.
  • User Roles: Admins can post news, while users can browse and send messages.
  • News Categories: Sports, fashion, etc.
  • Contact Page: Allows users to send messages to the admin.

Prerequisites

  • Visual Studio
  • .NET Framework
  • SQL Server (for database integration)

Installation

Step 1: Clone the Repository

Open your terminal and clone the repository using:

git clone https://github.com/"Your git hub username"/News-Portal.git

Step 2: Open in Visual Studio

  • Open Visual Studio and load the solution file (.sln) from the cloned repository.

Step 3: Install Dependencies

  • Visual Studio will prompt you to restore NuGet packages. Allow it to restore the required dependencies.

Step 4: Set Up the Database

  • Create a new database in SQL Server.
  • Update the connection string in the web.config file with your database details:
    <connectionStrings>
        <add name="DefaultConnection" connectionString="Data Source=YourServer;Initial Catalog=YourDatabase;Integrated Security=True" providerName="System.Data.SqlClient" />
    </connectionStrings>

Step 5: Run Migrations (if applicable)

  • If database migrations are set up, apply migrations using:
    Update-Database

Step 6: Build and Run the Project

  • Press F5 or click "Start" to run the project in Visual Studio.

Usage

Admin

  • Login as an admin using the default credentials (or create an admin account through the database).
  • Navigate to the admin panel to add, edit, or delete news articles.
  • View and manage user messages from the contact page.

Users

  • Browse news categories.
  • View detailed articles.
  • Send messages via the contact page.

Technologies Used

  • Frontend: HTML, CSS, JavaScript, Bootstrap
  • Backend: ASP.NET, C#
  • Database: SQL Server

Contributing

  1. Fork the repository.
  2. Create a new feature branch (git checkout -b feature/YourFeature).
  3. Add the change (git add .).
  4. Commit your changes (git commit -m 'Add new feature').
  5. Push to the branch (git push origin feature/YourFeature).
  6. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Frequently Asked Questions (FAQ)

  1. What is News Portal? News Portal is a web platform where users can browse news articles across various categories, like sports and fashion. It includes an admin panel for managing content and a contact page for inquiries.

  2. Who can use News Portal? Anyone can use it! Regular users can browse news articles, view detailed content, and send messages to the admin, while admins can manage news articles and user accounts.

  3. What features does the Admin Panel include? Admins have full control to:

Add, edit, or delete news articles. Manage user accounts. View and respond to messages sent via the contact page.

  1. How do I set up News Portal on my local machine? You’ll need Visual Studio, .NET Framework, and SQL Server. Here’s a quick setup:

Clone the repository from GitHub. Open the solution in Visual Studio. Restore NuGet packages. Set up your database in SQL Server and update the connection string in the web.config. Run migrations if needed, then build and run the project.

  1. How can I contribute to this project? Contributions are welcome! You can:

Fork the repository. Create a new branch for your feature. Make your changes, commit, and push to your branch. Open a pull request.

  1. What technologies are used in News Portal?

Frontend: HTML, CSS, JavaScript, Bootstrap Backend: ASP.NET, C# Database: SQL Server

  1. How can I contact the admin? Simply use the Contact Page on the platform to send a message directly to the admin.

  2. What’s the project license? News Portal is licensed under the MIT License. You can review the LICENSE file in the repository for more details.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •