Skip to content

Commit 3e1f904

Browse files
committed
initial migration to litedb
1 parent 62ea733 commit 3e1f904

File tree

472 files changed

+75816
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

472 files changed

+75816
-0
lines changed

.dockerignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/bin
15+
**/charts
16+
**/docker-compose*
17+
**/compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
README.md

.github/workflows/dotnet.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: .NET
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-and-test:
11+
name: build-and-test-${{matrix.os}}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v2
20+
with:
21+
dotnet-version: 6.0.x
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
- name: Build
25+
run: dotnet build --no-restore
26+
- name: Test
27+
run: dotnet test --no-build --verbosity normal

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**/bin
2+
**/*.dll
3+
*.log
4+
obj
5+
bin
6+
logs
7+
8+
FrontEnd/node_modules
9+
FrontEnd/dist
10+
11+
.vs
12+
13+
CodeCoverage/test_result

CodeCoverage/create_report_script.cmd

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
:: runs commands to test and generate code coverage report
2+
:: place in /<RootProjectDirectory>/CodeCoverage
3+
:: use terminal to run script
4+
:: this script uses the tool dotnet-reportgenerator-globaltool
5+
:: please install it using dotnet tool install -g dotnet-reportgenerator-globaltool
6+
cd %~dp0
7+
cd..
8+
set "projectPath=%CD%"
9+
set excludeClasses=-Program;^
10+
-Devon4Net.Application.WebAPI;^
11+
-Devon4Net.Application.WebAPI.Implementation.Domain.*;^
12+
-Devon4Net.Application.WebAPI.Implementation.Configuration.*;^
13+
-Devon4Net.Application.WebAPI.Implementation.Data.*;^
14+
-Devon4Net.Application.WebAPI.Implementation.Business.AnsibleTowerManagement.*;^
15+
-Devon4Net.Application.WebAPI.Implementation.Business.AntiForgeryTokenManagement.*;^
16+
-Devon4Net.Application.WebAPI.Implementation.Business.AuthManagement.*;^
17+
-Devon4Net.Application.WebAPI.Implementation.Business.CyberArkManagement.*;^
18+
-Devon4Net.Application.WebAPI.Implementation.Business.EmployeeManagement.*;^
19+
-Devon4Net.Application.WebAPI.Implementation.Business.MediatRManagement.*;^
20+
-Devon4Net.Application.WebAPI.Implementation.Business.RabbitMqManagement.*;^
21+
-Devon4Net.Application.WebAPI.Implementation.Business.SmaxHcmrManagement.*;^
22+
-Devon4Net.Application.WebAPI.Implementation.Business.TodoManagement.*;^
23+
-Devon4Net.Application.WebAPI.Implementation.Business.DishManagement.Dto.ExtraDto;^
24+
-Devon4Net.Application.WebAPI.Implementation.Business.DishManagement.Dto.CategoryDto;^
25+
-Devon4Net.Application.WebAPI.Implementation.Business.CategoryManagement.Dto.CategoryDto;^
26+
-Devon4Net.Application.WebAPI.Implementation.Business.CategoryManagement.Converters.CategoryConverter;^
27+
-Devon4Net.Application.WebAPI.Implementation.Business.CategoryManagement.Controllers.CategoryController;
28+
cd %projectPath%\Templates\WebAPI\Devon4Net.Test
29+
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:Exclude="[xunit.*]*" /p:CoverletOutput="%projectPath%\CodeCoverage\test_result\coverage.cobertura.xml"
30+
reportgenerator "-reports:%projectPath%\CodeCoverage\test_result\coverage.cobertura.xml" "-targetdir:%projectPath%\CodeCoverage\report" "-classfilters:%excludeClasses%"
31+
:: start %projectPath%\CodeCoverage\report\index.html
32+
:: pause

Database/Dockerfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM mcr.microsoft.com/mssql/server:2019-latest
2+
3+
ENV ACCEPT_EULA=Y
4+
5+
ENV SA_PASSWORD=C@pgemini2017
6+
7+
ENV MSSQL_TCP_PORT=1433
8+
9+
ENV MSSQL_PID=Developer
10+
11+
WORKDIR /src
12+
13+
COPY Schema.sql ./Schema.sql
14+
15+
USER mssql
16+
RUN ( /opt/mssql/bin/sqlservr --accept-eula & ) | grep -q "Service Broker manager has started" \
17+
&& /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1,1433 -U sa -P C@pgemini2017 -i Schema.sql \
18+
&& pkill sqlservr
19+
20+
EXPOSE 1433
21+

0 commit comments

Comments
 (0)