OnionArch
A .NET Core demo application which uses the Onion Architecture
File Explorer
Download Latest Version (.zip)- BaseAuditClass.cs
- Book.cs
- BookSeries.cs
- Series.cs
- Onion.Data.csproj
- BookMap.cs
- SeriesMap.cs
- 20170924124322_InitialMigration.cs
- 20170924124322_InitialMigration.Designer.cs
- DataContextModelSnapshot.cs
- DataContext.cs
- DataRepository.cs
- IRepository.cs
- ChangeTrackerExtentions.cs
- DbContextExtensions.cs
- DatabaseSeeder.cs
- 00000000000000_CreateIdentitySchema.cs
- 00000000000000_CreateIdentitySchema.Designer.cs
- ApplicationDbContextModelSnapshot.cs
- AppIdentityDbContext.cs
- ApplicationUser.cs
- ConfigurationBase.cs
- DatabaseConfiguration.cs
- DbContextFactory.cs
- Onion.Repo.csproj
- IBookSeriesService.cs
- IBookService.cs
- IEmailSender.cs
- ISeriesService.cs
- BookSeriesService.cs
- BookService.cs
- EmailSender.cs
- Onion.Service.csproj
- SeriesService.cs
- EmailSenderExtensions.cs
- UrlHelperExtensions.cs
- ExternalLoginViewModel.cs
- ForgotPasswordViewModel.cs
- LoginViewModel.cs
- LoginWith2faViewModel.cs
- LoginWithRecoveryCodeViewModel.cs
- RegisterViewModel.cs
- ResetPasswordViewModel.cs
- AccessDenied.cshtml
- AccountController.cs
- ConfirmEmail.cshtml
- ExternalLogin.cshtml
- ForgotPassword.cshtml
- ForgotPasswordConfirmation.cshtml
- Lockout.cshtml
- Login.cshtml
- LoginWith2fa.cshtml
- LoginWithRecoveryCode.cshtml
- Register.cshtml
- ResetPassword.cshtml
- ResetPasswordConfirmation.cshtml
- SignedOut.cshtml
- About.cshtml
- Contact.cshtml
- HomeController.cs
- Index.cshtml
- ChangePasswordViewModel.cs
- EnableAuthenticatorViewModel.cs
- ExternalLoginsViewModel.cs
- GenerateRecoveryCodesViewModel.cs
- IndexViewModel.cs
- RemoveLoginViewModel.cs
- SetPasswordViewModel.cs
- TwoFactorAuthenticationViewModel.cs
- _Layout.cshtml
- _ManageNav.cshtml
- _StatusMessage.cshtml
- _ViewImports.cshtml
- ChangePassword.cshtml
- Disable2fa.cshtml
- EnableAuthenticator.cshtml
- ExternalLogins.cshtml
- GenerateRecoveryCodes.cshtml
- Index.cshtml
- ManageController.cs
- ManageNavPages.cs
- ResetAuthenticator.cshtml
- SetPassword.cshtml
- TwoFactorAuthentication.cshtml
- _Layout.cshtml
- _LoginPartial.cshtml
- _ValidationScriptsPartial.cshtml
- Error.cshtml
- _ViewImports.cshtml
- _ViewStart.cshtml
- ErrorViewModel.cs
- launchSettings.json
- site.css
- site.min.css
- banner1.svg
- banner2.svg
- banner3.svg
- banner4.svg
- site.js
- site.min.js
- bootstrap-theme.css
- bootstrap-theme.css.map
- bootstrap-theme.min.css
- bootstrap-theme.min.css.map
- bootstrap.css
- bootstrap.css.map
- bootstrap.min.css
- bootstrap.min.css.map
- glyphicons-halflings-regular.eot
- glyphicons-halflings-regular.svg
- glyphicons-halflings-regular.ttf
- glyphicons-halflings-regular.woff
- glyphicons-halflings-regular.woff2
- bootstrap.js
- bootstrap.min.js
- npm.js
- .bower.json
- LICENSE
- jquery.js
- jquery.min.js
- jquery.min.map
- .bower.json
- LICENSE.txt
- additional-methods.js
- additional-methods.min.js
- jquery.validate.js
- jquery.validate.min.js
- .bower.json
- LICENSE.md
- .bower.json
- jquery.validate.unobtrusive.js
- jquery.validate.unobtrusive.min.js
- app.bundle.js
- favicon.ico
- appsettings.Development.json
- appsettings.json
- bundleconfig.json
- ConfigureContainerExtentions.cs
- Dockerfile
- FeatureLocationExpander.cs
- Onion.Web.csproj
- package-lock.json
- package.json
- Program.cs
- Startup.cs
- webpack.assets.js
- webpack.config.js
- template.json
- .dockerignore
- .gitignore
- appveyor.yml
- Code-of-Conduct.md
- commands.md
- Dockerfile
- LICENSE
- logo.svg
- NuGetReadme.md
- onionArch-nuget-logo.png
- OnionArch.nuspec
- onionArch.png
- OnionArch.sln
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/GaProgMan/OnionArch
Downloads the entire project code from GitHub to your computer.
cd OnionArch
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t onionarch .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 onionarch
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. .NET
MediumPrerequisites
dotnet restore
Downloads the packages the project depends on.
dotnet ef migrations add CreateIdentitySchema -c AppIdentityDbContext -p ../Onion.Repo/Onion.Repo.csproj -s Onion.Web.csproj
Type this command into your terminal and run it.
dotnet ef migrations add InitialMigration -c DataContext -p ../Onion.Repo/Onion.Repo.csproj -s Onion.Web.csproj
Type this command into your terminal and run it.
dotnet ef database update -c DataContext -p ../Onion.Repo/Onion.Repo.csproj -s Onion.Web.csproj
Type this command into your terminal and run it.
dotnet ef database update -c AppIdentityDbContext -p ../Onion.Repo/Onion.Repo.csproj -s Onion.Web.csproj
Type this command into your terminal and run it.
After dotnet run, check the message or address shown in the terminal.
Pulled directly from this repo's README.
4. Node.js
EasyPrerequisites
npm i
Type this command into your terminal and run it.
npm run build
Builds optimized production files.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
