https://github.com/khoido2003/minimalapi
Built with ASP.NET
https://github.com/khoido2003/minimalapi
Last synced: 4 months ago
JSON representation
Built with ASP.NET
- Host: GitHub
- URL: https://github.com/khoido2003/minimalapi
- Owner: khoido2003
- Created: 2024-10-27T10:43:13.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-02T05:32:45.000Z (9 months ago)
- Last Synced: 2025-02-07T18:16:35.451Z (5 months ago)
- Language: C#
- Size: 16.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Minimal API With .NET
## Create project
bash
```
dotnet new webapi -minimal -n MinimalAPI
```## Isue with the HTTPS
bash
```
dotnet dev-certs https --trust
```## Add package
bash
```
dotnet add package + name
```
Find more packages at https://www.nuget.org## Run the project
bash
```
dotnet run
```## Set secret userId
bash
```
dotnt user-secrets initdotnet user-secrets set "UserId" "sa"
dotnet user-secrets set "Password" "PASS"
dotnet user-secrets remove "Password"
dotnet user-secrets remove "UserId"
```
## Install dotnet-ef
bash
```
dotnet tool install --global dotnet-ef
```## Create migration
bash
```
dotnet ef migrations add + migrationName
```## Remove migration
bash
```
dotnet ef migrations remove
```## Update DB
bash
```
dotnet ef database update
```