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