Mock Project for external members
Please see database preparation README file on DataBase folder.
dotnet buils
command of project is depand on cake and gitversion with dotnet tools.
-
.NET Code
Download Package from https://www.microsoft.com/net/download
-
intsall
dotnet tool cake
dotnet tool install -g Cake.Tool --version 0.30.0
-
install
dotnet tool gitversion
dotnet tool install --global GitVersion.Tool --version 4.0.1-beta1-47
Default Build will trigger Restore, Build and Test. So need to start up DB first.
Execute :
dotnet cake build.cake --target="Default-Build"
Excute :
dotnet gitversion > version.json
-
Default-Build
Task("Task-Publish-Nuget") .IsDependentOn("Clean-Folder") .IsDependentOn("Restore") .IsDependentOn("Build") .IsDependentOn("Test") .IsDependentOn("Versioning") .IsDependentOn("Package-NuGet") .IsDependentOn("Deploy-Nuget") .Does(() => { Information("Publish-Nuget"); });
-
Default-Nuget-Deployment
Task("Task-Publish-Domain") .IsDependentOn("Clean-Folder") .IsDependentOn("Restore") .IsDependentOn("Build") .IsDependentOn("Test") .IsDependentOn("Publish-Domain") .Does(() => { Information("Publish-Domain"); });
-
Default-Publish
Task("Task-Publish-Web") .IsDependentOn("Clean-Folder") .IsDependentOn("Restore") .IsDependentOn("Build") .IsDependentOn("Test") .IsDependentOn("Publish-Web") .Does(() => { Information("Publish-Web"); });
Install node in your system.
Path of front-end : /src/MockSite.Web/ClientApp
And do npm install
before execute project from Rider or VSCode for .NET Development with Web.
path of Domain Service: /src/MockSite.DomainService
Please run below command to run console for Domain Service:
dotnet run -f netcoreapp2.1
Front-end UI framework development README file
-
Path of ASP.NET Core solution:
/MockSite.sln
Run or Debug from Rider/Dotnet CLI/vscode to host
SPA Service
for React Development -
Path of front-end :
/src/MockSite.Web/ClientApp
prerequisite steps: do
npm install
first and run below command to start front-end:npm start
- Add MariaDB connection in Rider.
-
Add data source > MariaDB
- host: localhost
- port: 3326
- username: root
- password: pass.123
-
Change to show TestDB view
Rider > Database tools > Manage shown schemas… > Choose TestDB
Please reference gRPC development README file if you try to add new method in Domain Servcie and explore to Application to calling to support front-end CRUD of data.
Using deploy.sh
to build entire envionment(exclude Database) with docker-compose