The following application is an ASP.NET Core API Skeleton. This application is intended to provide you with a starting point for building a basic API in ASP.NET core, with sensible and secure defaults. This API is designed to run on any .Net Core platform (Windows, OSX, and Ubuntu). For production purposes, I recommend running this behind Nginx on Ubuntu 16.04.
- Install .Net Core 1.1
- Clone this repository
git clone https://github.com/charlesportwoodii/aspnetcore-api.git cd aspnetcore-api
- Install the dependencies
dotnet restore
- Run the migrations
dotnet ef database update
The API can be run one of three different ways:
- In general
dotnet run
works. - For development
dotnet watch run
is better. - For production, consider using the provider
Dockerfile
.