run-aspnetcore-basics

(★ 235)

Implementation of Real-World example in One Solution - One Project for web application development with Asp.Net Core & EF.Core. Only one web application project which used aspnetcore components; razor pages, middlewares, dependency injection, configuration, logging. To create websites with minimum implementation of asp.net core based on HTML5, CSS, and JavaScript. You can use this boilerplate for fast implementation, minimum development, bootstrap your idea, create Minimum Viable Product (MVP), idea validation, startup development implementation for a limited time and limited resources with using latest asp.net core and entity framework core.

  • .dockerignore
  • .gitignore
  • AspnetRunBasics.sln
  • LICENSE
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/aspnetrun/run-aspnetcore-basics

Downloads the entire project code from GitHub to your computer.

cd run-aspnetcore-basics

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 -f AspnetRunBasics/Dockerfile -t run-aspnetcore-basics .

Builds a runnable image based on the Dockerfile.

docker run -p 8080:80 run-aspnetcore-basics

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 build

Type this command into your terminal and run it.

dotnet run

Builds the project and runs it immediately.

dotnet ef database update -c AspnetRunContext

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.

// repository documentation