Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khoido2003/minimalapi
Built with ASP.NET
https://github.com/khoido2003/minimalapi
Last synced: about 1 month ago
JSON representation
Built with ASP.NET
- Host: GitHub
- URL: https://github.com/khoido2003/minimalapi
- Owner: khoido2003
- Created: 2024-10-27T10:43:13.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T17:25:17.000Z (3 months ago)
- Last Synced: 2024-10-27T20:39:58.590Z (3 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
```