OnionArch

(โ˜… 103)

A .NET Core demo application which uses the Onion Architecture

  • .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 Recommended
Prerequisites
  • 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

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • .NET SDK The SDK required for the dotnet command.
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

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
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