Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/batsdk/game-runner
Simple API in ASP.Net to try few Azure services and OAuth
https://github.com/batsdk/game-runner
Last synced: about 1 month ago
JSON representation
Simple API in ASP.Net to try few Azure services and OAuth
- Host: GitHub
- URL: https://github.com/batsdk/game-runner
- Owner: batsdk
- Created: 2024-11-24T14:19:12.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-24T17:17:24.000Z (about 2 months ago)
- Last Synced: 2024-11-24T17:28:42.336Z (about 2 months ago)
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GameRunner API
## Starting the MySQL Server
```powershell
$password = "root"
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=$password -d -v sqlvolume:/var/opt/mysql mysql:latest
```## Starting the MSSQL (Optional)
```powershell
$password = "root"
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=root" -p 1433:1433 -v sqlvolume:/var/opt/mssql --name mssql -d --rm mcr.microsoft.com/mssql/server:2022-latest
```## Setting the Connection string to secret manager
```powershell
$sa_password="root"
dotnet user-secrets set "ConnectionStrings:GameStoreContext" "Server=localhost; Port=3306; Database=GameStore; User=root; Password=root;"
```## How to run Migrations ?
```powershell
dotnet ef migrations add migrationName --output-dir Data/Migrations
```
## How to update the Database
```powershell
dotnet ef database update
```