Skip to content

microsoftdotnetdevelopment/News-Portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Awesome YouTube Channel

Welcome to my YouTube channel! 🎉 In this channel, I share exciting content related to web development. Whether you're interested in Angular, Javascript, or Productivity tips, you'll find something valuable here. YouTube Channel

About Me

I'm Sam, and I'm passionate about product engineering and web development. I create videos that will help you learn web development.

What You'll Find Here

  • [ Angular ]: [Learn the fundamentals. I explained everything you need to get started with this JavaScript framework written in TypeScript. It is the web development framework for building the future. works at any scale. Loved by millions. Build for everyone. open-source framework for building single-page client applications using HTML and TypeScript.]
  • [ Javascript ]: [JavaScript is a powerful programming language that can add interactivity to a website. JavaScript is easy to learn. It's the foundation of frontend web development.]
  • [ Career Tips ]: [self-assessment, goal setting, action planning, implementation, and refinement. By following these steps, you can develop a road map for achieving your career goals. Tips to improve your career development. Cultivating a beginner's mindset is a critical part of career growth. critical part of your professional growth.]
  • [ Common Errors ]: [Mistakes to Avoid in Software Development Projects.]
  • [ Development Tools ]: [Top Software Development Tools List.]
  • [ Typescript ]: [TypeScript extends JavaScript by adding types to the language. TypeScript speeds up your development experience by catching errors. TypeScript can help enhance and improve your web development projects.]
  • [ Git & GitHub ]: [GitHub is where over 100 million developers shape the future of software together. Contribute to the open-source community and manage Git repositories. This practical guide gets you to jump right into using GitHub, learning the basics of Git. Git and GitHub are two of the most essential tools in the world of software development.]
  • [ Video Conferencing Tool ]: [Unlock the potential of video conferencing software development. Dive into our guide for insights on key features and cost factors. If you're looking to integrate video communication into your app or planning to build a video streaming/conference app from scratch, create a fully customized audio & video conferencing app.]

About the app

Project Setup and Run Guide for News Portal

Step 1: Clone the Repository

First, get a copy of the project onto your local machine: git clone https://github.com/your-username/News-Portal.git cd News-Portal

Step 2: Open in Visual Studio

Open Visual Studio and load the solution file (.sln) from the cloned project folder. This will pull in the necessary project files.

Step 3: Install Dependencies

Visual Studio might prompt you to restore dependencies—just allow it to restore any missing NuGet packages. This will install any libraries or packages required for the project.

##Step 4: Set Up the Database Open SQL Server and create a new database for the project. In the project’s web.config file, update the database connection string with your database details:

Step 5: Run Migrations (if applicable)

If there are database migrations included, apply them to set up the database structure: Update-Database

Step 6: Build and Run the Project

In Visual Studio, press F5 or click on Start to build and run the project. The News Portal should open in your browser, and you’ll be able to explore the site.

 dotnet new sln -n YourSolutionName

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.

Important Links

Subscribe and Stay Updated!

Don't miss out on new videos! Subscribe to my channel and hit the notification bell 🔔 to receive updates whenever I upload fresh content. Let's learn, laugh, and explore together!

!Subscribe to My Channel

Connect with Me

Feel free to reach out, comment on videos, and share your thoughts. I appreciate your support! 🙌

License

This project is licensed under the MIT License.


If you have any questions or need further assistance, feel free to ask! 🚀

Steps to contribute and generate PR(pull request)

clone the repository

clone the forked repository to your system. Go to your GitHub account, open the forked repository, click on the code button and then clone the repository. If you want to use the terminal, use the following commands after you fork the repository, open the terminal type the given command

git clone repo url

create a branch

create a branch on your local repository to solve a problem.

Terminal commands

git checkout -b your_new_branch_name

add & commit

add your changes(folder) to that branch. Make necessary changes and commit those changes. Terminal commands

git add .
git commit -m "your-commit-message"

push changes to github

finally, push your local repository to the remote repository compare & submit a pull request

terminal commands

git push origin 

Go to your repository on GitHub, you'll see a compare & pull request button. Click on that button.

Now submit the pull request.

For quick approval of the pull request, reach out to me on the mentioned social media channels.

 _____ _                 _     __   __            
|_   _| |               | |    \ \ / /            
  | | | |__   __ _ _ __ | | __  \ V /___  _   _   
  | | | '_ \ / _` | '_ \| |/ /   \ // _ \| | | |  
  | | | | | | (_| | | | |   <    | | (_) | |_| |  
  \_/ |_| |_|\__,_|_| |_|_|\_\   \_/\___/ \__,_|  
                                                  
                                                  
______                                            
|  ___|                                           
| |_ ___  _ __                                    
|  _/ _ \| '__|                                   
| || (_) | |                                      
\_| \___/|_|                                      
                                                  
                                                  
______      _               _   _               _ 
| ___ \    (_)             | | | |             | |
| |_/ / ___ _ _ __   __ _  | |_| | ___ _ __ ___| |
| ___ \/ _ \ | '_ \ / _` | |  _  |/ _ \ '__/ _ \ |
| |_/ /  __/ | | | | (_| | | | | |  __/ | |  __/_|
\____/ \___|_|_| |_|\__, | \_| |_/\___|_|  \___(_)
                     __/ |                        
                    |___/                         

 


if (youEnjoyed) {
 //  (star ⭐ & fork 🍽️) this repository.
 // - Fork this repository by clicking on the fork button at the top of this page. This will create a copy of this repository in your account.
    starThisRepository();
}

happy coding fellas!!💕✨

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors