How to run the local environment - BOD-Tech-Trend-Emporium/Backend GitHub Wiki

Overview

Firstly, the project was built using C#, .NET, and SQL Server. To run the project on your machine, it is recommended to install SQL Server Management Studio and Visual Studio. However, if you just want to see the endpoints and the functions already working, we recommend visiting the environment page where the API is running on Azure.

Steps:

  1. Create a database called TechTrendEmporium using SQL Server.
  2. Rename the file appsettings.Local.json.example to appsettings.Local.json.
  3. Write your SQL connection string in the ConnectionStrings section and your key in the AppSettings section under TokenKey.
  4. Using package manager console, you should run Add-Migration InitialCreate to create a folder that contains sql queries.
  5. In the Package Manager Console, run $env:ASPNETCORE_ENVIRONMENT='Local' to select the environment in which your project will run.
  6. In the Package Manager Console, run Update-Database to create the tables in your database.
  7. Run the project in the local environment.