Skip to content

Commit

Permalink
Initial commit, let the adventure begin.
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbader committed Jan 19, 2025
0 parents commit 5a097f1
Show file tree
Hide file tree
Showing 384 changed files with 65,706 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.30.2",
"commands": ["dotnet-csharpier"]
},
"dotnet-ef": {
"version": "9.0.0",
"commands": ["dotnet-ef"]
},
"dotnet-outdated-tool": {
"version": "4.6.4",
"commands": ["dotnet-outdated"]
},
"husky": {
"version": "0.7.1",
"commands": ["husky"]
},
"swashbuckle.aspnetcore.cli": {
"version": "7.1.0",
"commands": ["swagger"]
}
}
}
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM mcr.microsoft.com/devcontainers/base:jammy
98 changes: 98 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
"name": "OpenSpacePlanner",
"build": {
"dockerfile": "Dockerfile"
},
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/devcontainers/features/git": {
"version": "latest"
},
"ghcr.io/devcontainers/features/git-lfs": {
"version": "latest",
"autoPull": true
},
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "8.0"
},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "18",
"nvmVersion": "0.39"
},
"ghcr.io/devcontainers/features/azure-cli:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": true,
"azureDnsAutoDetection": true,
"installDockerBuildx": true,
"installDockerComposeSwitch": true,
"version": "latest",
"dockerDashComposeVersion": "none"
},
"ghcr.io/devcontainers/features/powershell:1": {
"version": "latest"
}
},
"forwardPorts": [1433, 4100, 7100, 17295],
"portsAttributes": {
"1433": {
"label": "SQL Server"
},
"4100": {
"label": "Open Space Planner (WebApp)"
},
"7100": {
"label": "Open Space Planner (WebApi)"
},
"17295": {
"label": "Aspire Dashboard"
}
},
"containerUser": "root",
"remoteUser": "root",
"postCreateCommand": "chmod +x ./.devcontainer/scripts/post-create.sh && ./.devcontainer/scripts/post-create.sh ${containerWorkspaceFolder}",
"customizations": {
"vscode": {
"extensions": [
"angular.ng-template",
"csharpier.csharpier-vscode",
"davidanson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"DotJoshJohnson.xml",
"ecmel.vscode-html-css",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"formulahendry.dotnet-test-explorer",
"hbenl.vscode-test-explorer",
"ms-azure-devops.azure-pipelines",
"ms-azuretools.vscode-bicep",
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp",
"ms-mssql.mssql",
"orta.vscode-jest"
],
"settings": {
"mssql.connections": [
{
"server": "sqlserver",
"database": "openspaceplanner",
"authenticationType": "SqlLogin",
"user": "sa",
"password": "P@ssw0rd",
"emptyPasswordInput": false,
"savePassword": true,
"profileName": "SQL Server",
"encrypt": "Mandatory",
"trustServerCertificate": true,
"connectTimeout": 15,
"commandTimeout": 30,
"applicationName": "vscode-mssql"
}
]
}
}
}
}
7 changes: 7 additions & 0 deletions .devcontainer/scripts/post-create.dotnet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# restore dotnet tooling
sudo dotnet workload update
dotnet tool restore

dotnet restore
4 changes: 4 additions & 0 deletions .devcontainer/scripts/post-create.git-hooks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# install Git hooks
dotnet husky install
4 changes: 4 additions & 0 deletions .devcontainer/scripts/post-create.git.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# make the current workspace directory a safe directory
git config --global --add safe.directory $1
4 changes: 4 additions & 0 deletions .devcontainer/scripts/post-create.node.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# restore npm packages
npm ci
13 changes: 13 additions & 0 deletions .devcontainer/scripts/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

chmod +x ./.devcontainer/scripts/post-create.git.sh
./.devcontainer/scripts/post-create.git.sh "$1"

chmod +x ./.devcontainer/scripts/post-create.dotnet.sh
./.devcontainer/scripts/post-create.dotnet.sh "$1"

chmod +x ./.devcontainer/scripts/post-create.node.sh
./.devcontainer/scripts/post-create.node.sh "$1"

chmod +x ./.devcontainer/scripts/post-create.git-hooks.sh
./.devcontainer/scripts/post-create.git-hooks.sh "$1"
33 changes: 33 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
**/.angular
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.venv
**/.vs
**/.vscode
**/*.*proj.user
**/*.bak
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/coverage
**/coverageReport
**/docker-compose*
**/Dockerfile*
**/docs
**/eng
**/node_modules
**/npm-debug.log
**/obj
**/out
**/secrets.dev.yaml
**/TestResults
LICENSE
README.md
Loading

0 comments on commit 5a097f1

Please sign in to comment.