No description
Find a file
2024-06-16 12:50:47 -04: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 Sửa lỗi vẫn có thể chọn danh mục khi ấn sửa 2024-06-16 10:24:57 -04:00
Components + Chuyển TopBar sang kiểu ViewComponent 2024-06-14 22:47:32 -04:00
Controllers Cập nhật API FPT AI 2024-06-16 12:50:47 -04:00
Models Thông tin sửa đổi: 2024-06-16 10:16:21 -04:00
Properties first commit 2024-04-04 22:22:59 +07:00
Ultilities Thông tin sửa đổi: 2024-06-16 10:16:21 -04:00
Views Cập nhật API FPT AI 2024-06-16 12:50:47 -04:00
wwwroot Rất nhiều hãy xem phần mở rộng để biết chi tiết. 2024-06-13 02:39:59 +07:00
.gitignore Cập nhật Model, xóa tmp 2024-06-03 19:47:19 +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
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
Program.cs Loại bỏ Migrate vì khả năng gây lỗi cao 2024-06-14 08:56:51 -04:00
README.md Loại bỏ Migrate vì khả năng gây lỗi cao 2024-06-14 08:56:51 -04:00
TechNews.csproj Cập nhật liên quan đến Docker 2024-05-30 15:06:32 +07:00
TechNews.sln first commit 2024-04-04 22:22:59 +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