Welcome to The Chosen Blogger, a simple blogging web app designed for practicing Onion Architecture. This application utilizes Razor Pages as the Application Framework in the Presentation Layer and EF Core as the ORM.
- Create articles in specific categories
- Read articles and share comments
- Admin panel for comment moderation, article, and category management
- .NET SDK installed on your machine
- Microsoft SQL Server for database on your machine
-
Clone this repository to your local machine:
git clone https://github.com/smostafa2001/TheChosenBlogger.git
-
Navigate to the project directory:
cd TheChosenBlogger -
Change connection string:
cd TheChosenBlogger.Presentation.RazorPagesModify appsettings.json and change the value of "TheChosenBloggerDb" to the connection string of your machine. It can be SQL Server Username/Password, Or Windows AuthN.
-
Update EF Core database:
dotnet ef database update
This command will apply any pending migrations and update the database schema according to your model changes.
-
Run the application:
dotnet run
Visit
https://localhost:5001in your browser to access the application.
Contributions are welcome! Feel free to submit pull requests or open issues for any suggestions or improvements.
This project is licensed under the MIT License.