Skip to content

A sample .Net Core 2.0 project, with Postgresql DB and unit tests setup

Notifications You must be signed in to change notification settings

tyler6699/CoreCoursesSample

 
 

Repository files navigation

CoreCoursesSample

A sample ASP.Net Core 2.0 project, with Postgresql DB and unit tests setup

To run it..

Make sure you have .Net 2.0 installed (http://dot.net).

The code currently is setup to connect to a local docker instance of Postgresql, so assuming you have docker installed..

cd CoreCoursesSample.WebApi
docker-compose -f docker-compose.dev.yml up

will start the database

then create and migrate the database

dotnet restore
dotnet ef database update

To run tests

cd CoreCoursesSample.Tests
dotnet restore
dotnet test

To run Api sample

cd CoreCoursesSample.WebApi
dotnet restore
dotnet run

About

A sample .Net Core 2.0 project, with Postgresql DB and unit tests setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%