Git Product home page Git Product logo

dotnet-core-sample's Introduction

Hello .NET Core

A sample .NET Core 5 web app with route-to-code APIs and Razore pages.

Restore steps

1- Restore the packages dotnet restore.
2- Place your SQL Database connection string in DefaultConnection key in appsettings.json.
3- Run this script to create the demo table:

CREATE TABLE Users (
	Id int IDENTITY(0,1) NOT NULL,
	Name nvarchar(250) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
	CONSTRAINT NewTable_PK PRIMARY KEY (Id)
);

4- Run the project dotnet run.
5- Publish later with the command dotnet publish


Presentation

https://docs.google.com/presentation/d/1bzaXPHi-7njsMb52jSfOZqCrag1pt-bJzdbFMhV8mlQ/edit?usp=sharing

Files description

appsettings.json

Containsc production configuration data, like connection strings.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-5.0

Program.cs

Contains the entry point for the app.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-5.0

Startup.cs

Contains code that configures app behavior.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/startup?view=aspnetcore-5.0

core.csproj

Project file that contain references to packages.
https://docs.microsoft.com/en-us/dotnet/core/project-sdk/overview

index.cshtml/demo.cshtml

A simple Razor page file.
https://www.learnrazorpages.com/

SampleApis.cs

A simple route-to-code API class.
https://docs.microsoft.com/en-us/aspnet/core/web-api/route-to-code?view=aspnetcore-5.0

DataAccess.cs

A Data provider class for SQL Server https://social.technet.microsoft.com/wiki/contents/articles/35974.exploring-net-core-net-core-1-0-connecting-sql-server-database.aspx

Properties/LaunchSettings.json

Collection of configurations that are applied when developing the application locally https://dotnettutorials.net/lesson/asp-net-core-launchsettings-json-file/

dotnet-core-sample's People

Contributors

anasnajaa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.