No description
|
|
||
|---|---|---|
| .github/workflows | ||
| Areas/Admin | ||
| Components | ||
| Controllers | ||
| Models | ||
| Properties | ||
| Services | ||
| Ultilities | ||
| Views | ||
| wwwroot | ||
| .env | ||
| .gitignore | ||
| adminer.php | ||
| appsettings.Development.json | ||
| appsettings.json | ||
| AUTH_README.md | ||
| AUTHENTICATION_GUIDE.md | ||
| CODE_SNIPPETS.md | ||
| DATABASE_MIGRATION_GUIDE.md | ||
| docker-compose.yml | ||
| DOCUMENTATION_INDEX.md | ||
| IMPLEMENTATION_COMPLETE.md | ||
| IMPLEMENTATION_SUMMARY.md | ||
| MENU_DROPDOWN_GUIDE.md | ||
| MENU_DROPDOWN_SUMMARY.md | ||
| Program.cs | ||
| QUICK_START_AUTH.md | ||
| README.md | ||
| SYSTEM_ANALYSIS.md | ||
| TechNews.csproj | ||
| TechNews.sln | ||
| TESTING_GUIDE.md | ||
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
- Homepage template: BizNews by HTML Codex
- Admin template: NiceAdmin by BootstrapMade