.NET Core Boilerplate
note: alpha stages
How to use
-
Optional: fork to your own account on GitHub
-
clone to your machine
-
dotnet restore
-
modify Models/*.cs to create your csharp Models for Entity Framework Core; add any seeded data to the
Seeder
class -
dotnet ef migrations add init
- create the initial migrations for the database seeding -
dotnet ef database update
- write the migrations to the database -
dotnet watch run
- run and watch the file changes; -
if at any point you install a package through NuGet or change the project.json file - stop the watcher and re-run step 3 and step 7
-
if at any point you change a model, rerun steps 5 and 6
-
open
http://localhost:5000
to view local server -
to deploy:
To https://now.sh:
npm install -g now
- from project folder:
now
- open the url provided
- install the heroku CLI (https://devcenter.heroku.com/articles/heroku-command-line)
- (update and commit all your local git files)
heroku create --buildpack http://github.com/noliar/dotnet-buildpack.git
git push heroku master
heroku open
Support
- Please submit issues on GitHub with proper taggings / labels.
- Reach out to @matthiasak.