No description
Find a file
xuanminh fc8b0f507d
Some checks failed
Docker Publish / build (push) Has been cancelled
Add new image file for event on December 11, 2025
2026-01-11 20:48:09 +07:00
.github/workflows Loại bỏ Migrate vì khả năng gây lỗi cao 2024-06-14 08:56:51 -04:00
Areas/Admin Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
Components Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
Controllers Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
Models Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
Properties first commit 2024-04-04 22:22:59 +07:00
Services Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
Ultilities Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
Views Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
wwwroot Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
.env Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
.gitignore Cập nhật Model, xóa tmp 2024-06-03 19:47:19 +07:00
adminer.php Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
appsettings.Development.json first commit 2024-04-04 22:22:59 +07:00
appsettings.json thêm Readme.md tích hợp Docker 2024-05-24 11:45:09 +07:00
AUTH_README.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
AUTHENTICATION_GUIDE.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
CODE_SNIPPETS.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
DATABASE_MIGRATION_GUIDE.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
docker-compose.yml Thêm dữ liệu mẫu khi database vừa khởi tạo 2024-06-14 08:14:45 -04:00
DOCUMENTATION_INDEX.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
IMPLEMENTATION_COMPLETE.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
IMPLEMENTATION_SUMMARY.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
MENU_DROPDOWN_GUIDE.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
MENU_DROPDOWN_SUMMARY.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
Program.cs Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
QUICK_START_AUTH.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
README.md Loại bỏ Migrate vì khả năng gây lỗi cao 2024-06-14 08:56:51 -04:00
SYSTEM_ANALYSIS.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
TechNews.csproj Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00
TechNews.sln first commit 2024-04-04 22:22:59 +07:00
TESTING_GUIDE.md Add new image file for event on December 11, 2025 2026-01-11 20:48:09 +07:00

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