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.
- 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.
- Visual Studio
- .NET Framework
- SQL Server (for database integration)
Open your terminal and clone the repository using:
git clone https://github.com/"Your git hub username"/News-Portal.git
- Open Visual Studio and load the solution file (
.sln
) from the cloned repository.
- Visual Studio will prompt you to restore NuGet packages. Allow it to restore the required dependencies.
- 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>
- If database migrations are set up, apply migrations using:
Update-Database
- Press
F5
or click "Start" to run the project in Visual Studio.
- 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.
- Browse news categories.
- View detailed articles.
- Send messages via the contact page.
- Frontend: HTML, CSS, JavaScript, Bootstrap
- Backend: ASP.NET, C#
- Database: SQL Server
- Fork the repository.
- Create a new feature branch (
git checkout -b feature/YourFeature
). - Add the change (
git add .
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.
-
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.
-
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.
-
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.
- 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.
- 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.
- What technologies are used in News Portal?
Frontend: HTML, CSS, JavaScript, Bootstrap Backend: ASP.NET, C# Database: SQL Server
-
How can I contact the admin? Simply use the Contact Page on the platform to send a message directly to the admin.
-
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.