Project Setup - nogalskisam/Bug-Tracker GitHub Wiki
Welcome to the Bug-Tracker project setup page.
Prerequisites
- .NET Core 2.2 (https://dotnet.microsoft.com/download/dotnet-core/2.2)
- npm (https://www.npmjs.com/get-npm)
- Angular (https://angular.io/guide/quickstart)
Setup with VS Code
- Build the application by using the
dotnet build
command in the .sln directory - Browse to the
BugTracker.Site
directory and install npm packages usingnpm install
- Use
ng build
to build the Angular Application - Use
dotnet run
to run application. Alternatively run application from Visual Studio
Create the database
- Create a new local database. For this project, you can use
BugTracker
- Modify the string variable named
connection
inStartup.cs
in theBugTracker.Site
project (to be moved to appsettings.json Connection String in the future) - Modify the
DefaultConnection
connection string inappsettings.json
to be a connection to your database
VS Code/.NET Core CLI
- Use the
dotnet ef database update
command to update the database
Visual Studio
- Open the Package Manage Console by going to Tools > NuGet Package Manager > Package Manager Console
- Run the
update-database
command with theBugTracker.Site
as the startup project andBugTracker.DataAccess
as the default project