Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/template #40

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2d01c2e
work in progress
Sep 22, 2022
2b2a39a
init commit for templates
Sep 23, 2022
0894f76
docker for template
Sep 23, 2022
54fa7da
settings and vs extensions
Sep 23, 2022
8d4557f
renaming database
Sep 23, 2022
aadaa48
renaming database
Sep 23, 2022
9f5e050
Fixes to DBName
Sep 23, 2022
3e59452
excluding conditions for now
Sep 23, 2022
c91d898
build for template
Sep 23, 2022
67a6955
rename database
Sep 26, 2022
774b2cf
dev container configured
Sep 26, 2022
5adf94f
adding features and function core tools
Sep 26, 2022
ad2e720
fixing connections tring in docker containers
Sep 27, 2022
5cc8b57
HTTP files
Sep 27, 2022
128301e
minor updates to infra stack
Sep 27, 2022
52e2e3f
Merge remote-tracking branch 'origin' into feature/template
Sep 27, 2022
42ea8a9
developer setup in Infra
Sep 28, 2022
0537c1d
remove infra from samples
Sep 28, 2022
a6f7632
fixing rename that happend by accident
Sep 28, 2022
813cfcd
fixing some comments
Sep 28, 2022
2819e08
fixign tests
Sep 28, 2022
eb6959d
fix my HR function test
Sep 28, 2022
ee65338
fix CI
Sep 28, 2022
5c1f2be
test fix
Sep 29, 2022
23d3715
moving to tools folder
Sep 29, 2022
71f4f47
update to CI
Sep 29, 2022
d53ab46
build template
Sep 29, 2022
aa81bbc
removing extra files
Sep 29, 2022
237cdd6
more generic names
Sep 29, 2022
08fbade
stack rename
Sep 29, 2022
a17e27d
infra deployments
Sep 30, 2022
9510833
replacing . with _ in deployment info
Oct 2, 2022
9d7af42
pipeline files
Oct 2, 2022
97120d8
templates
Oct 2, 2022
64bcf34
pipeline files
Oct 2, 2022
4946903
minor
Oct 2, 2022
942f83a
health check
Oct 2, 2022
510ec22
Template project file
Oct 3, 2022
8c7a7d3
preparing for template nuget
Oct 3, 2022
a51c384
merge with main
Oct 3, 2022
1b266d9
Update nuget publish powershell.
chullybun Oct 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
work in progress
Signed-off-by: Piotr <karpik.pl+nospam@gmail.com>
  • Loading branch information
Piotr committed Sep 22, 2022
commit 2d01c2e8927ee53ac3e1c829e402ac95953fd071
1 change: 1 addition & 0 deletions samples/My.Hr/My.Hr.Functions/README.md
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ Sample configuration for `local.settings.json`
"VerificationResultsQueueName": "verificationResults",

"ServiceBusConnection__fullyQualifiedNamespace": "coreex.servicebus.windows.net",
"AzureWebJobs.ServiceBusExecuteVerificationFunction.Disabled": true, // disable when service bus is not available

"HttpLogContent": "true",
"AzureFunctionsJobHost__logging__logLevel__CoreEx": "Debug",
2 changes: 1 addition & 1 deletion src/CoreEx.Database/DatabaseServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Provides <see cref="IServiceCollection"/> extenstion methods.
/// Provides <see cref="IServiceCollection"/> extension methods.
/// </summary>
public static class DatabaseServiceCollectionExtensions
{
53 changes: 53 additions & 0 deletions src/Templates/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Temp readme file

## How to create templates

* [Samples](https://github.com/dotnet/samples/tree/main/core/tutorials/cli-templates-create-item-template)
* [Wiki](https://github.com/dotnet/templating/wiki)
* [Docs](https://learn.microsoft.com/en-us/dotnet/core/tools/custom-templates)
* [Tutorial](https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template)
* [NTangle template](https://github.com/Avanade/NTangle/tree/main/tools/NTangle.Template)

## Dev container

Add [Dev Container](https://code.visualstudio.com/docs/remote/create-dev-container#_use-docker-compose) with docker-compose support that would run the solution.

Extensions required:

* azure functions
* function tools
* az CLI
* Pulumi CLI
* dotnet SDK
* Pulumi VS Extension
* Azurite Extension
* REST Client

Expose ports for function, app service and sql server

## Update readme to use REST Client
Create: [POST] http://localhost:7071/api/api/employees

Delete: [DELETE] http://localhost:7071/api/api/employees/{id}

Get: [GET] http://localhost:7071/api/api/employees/{id}

GetAll: [GET] http://localhost:7071/api/api/employees

HealthInfo: [GET] http://localhost:7071/api/health

HttpTriggerQueueVerificationFunction: [POST] http://localhost:7071/api/employee/verify

Patch: [PATCH] http://localhost:7071/api/api/employees/{id}

RenderOAuth2Redirect: [GET] http://localhost:7071/api/oauth2-redirect.html

RenderOpenApiDocument: [GET] http://localhost:7071/api/openapi/{version}.{extension}

RenderSwaggerDocument: [GET] http://localhost:7071/api/swagger.{extension}

RenderSwaggerUI: [GET] http://localhost:7071/api/swagger/ui

Update: [PUT] http://localhost:7071/api/api/employees/{id}

## Add file that contains recommended VS CODE extensions