doandat943 / TechNews

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Important

Issues of this repository are tracked. Please create your issues on https://github.com/doandat943/TechNews/issues.

TechNews

TechNews is a modern online news website that provides the latest and most exciting technology news. Built on the ASP.NET Core framework with a MySQL database, TechNews leverages the MVC (Model-View-Controller) architecture to deliver a smooth and efficient user experience.

Key Features

  • Technology News: Continuously updated articles about the latest technology trends.
  • Content Management: Easily manage articles, categories, and authors through an admin interface.
  • Responsive Design: User-friendly interface compatible with all devices, from desktops to mobile phones.
  • Advanced Search: Allows users to search and filter articles based on various criteria.

Technologies Used

  • ASP.NET Core: A powerful framework by Microsoft for building web applications.
  • MySQL: A popular open-source relational database management system.
  • MVC (Model-View-Controller): A software design pattern that separates the application into distinct sections, making the codebase easier to maintain and extend.
  • Entity Framework Core: An ORM (Object-Relational Mapping) tool that simplifies database interactions.

Getting Started

To get started with the TechNews project, follow the instructions below in this document.

Prerequirements

  • Visual Studio/Visual Studio Code
  • .NET Core SDK
  • MySQL/MariaDB

How To Run

1. Navigate to the Project Folder

cd path/to/your/project

2. Set Database Environment Variables

On Windows (Command Prompt):

set DBHOST=your_database_host
set DBPORT=your_database_port
set DBUSERID=your_database_userid
set DBPASSWORD=your_database_password

On Windows (PowerShell):

$env:DBHOST="your_database_host"
$env:DBPORT="your_database_port"
$env:DBUSERID="your_database_userid"
$env:DBPASSWORD="your_database_password"

On Linux/macOS:

export DBHOST=your_database_host
export DBPORT=your_database_port
export DBUSERID=your_database_userid
export DBPASSWORD=your_database_password

3. Run the Application

dotnet watch run

Build and Run with Docker

dotnet publish /p:PublishProfile=DefaultContainer /p:ContainerRepository=doandat943/technews
docker-compose up

Credits

About


Languages

Language:JavaScript 62.6%Language:PHP 16.8%Language:CSS 12.8%Language:SCSS 3.6%Language:HTML 3.2%Language:C# 1.0%