BlogApp is a Blazor-based web application that allows users to create, view, and search blog posts. This application is built using .NET 8 and C# 12.0.
- Create new blog posts
- View a list of all blog posts
- Search for blog posts by title or content
- User authentication and authorization
- .NET 8 SDK
- Visual Studio 2022 or later with the ASP.NET and web development workload
Follow these steps to get the application running on your local machine:
-
Clone the repository:
git close https://github.com/0xTosscobble/BlogApp.git cd BlogApp
-
Restore the dependencies:
Open the solution in Visual Studio and restore the NuGet packages.
Alternatively, you can use the .NET CLI: dotnet restore
-
Update the database:
Ensure that you have a local SQL Server instance running. Update the connection string in
appsettings.jsonif necessary.Apply the migrations to create the database schema: *dotnet ef database update
-
Run the application:
You can run the application from Visual Studio by pressing
F5or using the .NET CLI: dotnet run -
Access the application:
Open your web browser and navigate to
https://localhost:5001(or the port specified in your launch settings).
- Navigate to the "Post" section from the navigation bar.
- Click on "Create New Post".
- Fill in the title and content of the blog post.
- Click "Save" to create the post.
- Navigate to the "Post" section from the navigation bar.
- You will see a list of all blog posts.
- Use the search bar in the navigation bar.
- Enter the text you want to search for and press "Search".
- The results will be displayed on the same page.