Authors: Luay Younus
This is a website that I built with C# ASP.NET Core using Razor Pages.
The following are required to run the program locally.
- Visual Studio 2017 Community with .NET Core 2.0 SDK
- GitBash / Terminal or GitHub Extension for Visual Studio
- Clone the repository to your local machine.
- Cd into the application directory where the
Portfolio.slnexist. - Open the application using
Open/Start Portfolio.sln.
- Once the App is opened, Right click on the application name from the
Solution Explorer Windowand selectAdd->New Item-> findASP.NET Configuration Fileand open add it to the project.
- Inside this file, change the Connection String to the following to connect to database
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=PortfolioDB;Trusted_Connection=True;MultipleActiveResultSets=true"
}- Click
Tools->NuGet Package Manager->Package Manager Consolethen run the following commands in the console.
- Install-Package Microsoft.EntityFrameworkCore.Tools
- Add-Migration Initial
- Update-Database- Entity Framework Core
- ASP.NET Core
- Azure
- Razor Pages
- Bootstrap
- .NET tag helpers
- Xunit