• Stars
    star
    139
  • Rank 261,757 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AlpineSkiHouse

Alpine Ski House

This is the example project for the Microsoft Press book ASP.Net Core Application Development: Building an Application in Four Sprints. You can buy the book off Amazon.

Setup

  1. Download the code.

  2. Open the solution file.

  3. Add a user secrets like :

    {
        "Authentication": {
            "Facebook": {
                "AppId": "some app id",
                "AppSecret": "some secret"
            },
            "Twitter": {
                "ConsumerKey": "some consumer key",
                "ConsumerSecret": "some consumer secret"
            }
        }
    }
  4. Run commands to restore JavaScript packages in the src/AlpineSkiHouse.Web directory :

    yarn install
    bower install
    jspm install

    Note: This step requires that yarn, bower and jpsm are all installed globally. This is typically done using the node package manager (npm) that ships as part of node.

    npm install yarn -g
    npm install bower -g
    npm install jspm -g

    Note the second: Some people have reported issues running against 6.x.x versions of node. The image minification plugin has an upstream dependency on a 4.x.x series node. To solve this you can install a 4.x.x version of node (I'd recommend using https://github.com/creationix/nvm to manage node versions) OR you can strip out the image minificaiton from the gulp file and packages.json file. The bug can be found at #101

  5. Run gulp :

    gulp

    Note: This step requires that gulp is installed globally: npm install gulp -g

  6. Run the solution in Visual Studio.

Creating and updating the database

From the src/AlpineSkiHouse.Web folder, run the dotnet ef database update command for each DbContext.

dotnet ef database update --context AlpineSkiHouse.Data.ApplicationUserContext
dotnet ef database update --context AlpineSkiHouse.Data.ResortContext
dotnet ef database update --context AlpineSkiHouse.Data.PassTypeContext
dotnet ef database update --context AlpineSkiHouse.Data.SkiCardContext
dotnet ef database update --context AlpineSkiHouse.Data.PassContext

Image Attribution

Images on this project found by Creative Common search on Bing Image Search and used under CC BY The ASP.NET Monsters.

Artwork on this project is a derivative of images found by Creative Common search on Bing Image Search, and licensed under CC BY The ASP.NET Monsters.

More Repositories

1

pugzor

A drop in replacement for the Razor view engine using pug
C#
92
star
2

Blazor.Geolocation

Blazor interop for browers Geolocation apis
C#
90
star
3

DapperSeries

Sample code for the Dapper Series of blog posts
C#
22
star
4

ExternalViewComponents

A sample project showing how to load view components from a class library
C#
20
star
5

vue-azure-b2c-sample

Authenticate users in a Vue app using Azure B2C
TypeScript
18
star
6

AzureFunctions.OidcAuthentication

Easily validate OIDC / JWT Bearer Tokens to authenticate users and secure your Azure Functions application
C#
18
star
7

EntityFrameworkCoreIntegrationTest

A sample project demonstrating how to do Entity Framework Core and SQL Server integration testing
C#
13
star
8

Nginx

JavaScript
13
star
9

ApplicationInsights

A collection of Telemetry Initializers to help you get the most out of Application Insights for ASP.NET Core apps
C#
12
star
10

Blazor.Sensors

Blazor interop for browers sensor apis
C#
11
star
11

SummerOfConfig

A sample of a custom, unique configuration source and provider in ASP.NET Core.
C#
8
star
12

EP210_MimeKitSendEmailToSmtp4Dev

Sample used in Episode 210 - SMTP4Dev
C#
4
star
13

website

Monsters website
JavaScript
4
star
14

BasicMassTransit

A basic mass transit demo application
C#
3
star
15

EP109-EFDbContextPooling

Sample code from Episode 109 of the ASP.NET Monsters Weekly
C#
3
star
16

functions-azure-b2c-sample

A sample Azure Functions based API secured using Azure B2C
C#
2
star
17

sockets

A demonstration of how http client leaves sockets hanging
C#
2
star
18

aspnetcore-azure-b2c-sample

A sample showing how to secure an API using Azure B2C
C#
2
star
19

EP170_EFCoreNodaTime

A sample showing how to use ASP.NET Core, EF Core with Noda Time
C#
2
star
20

Episodes-16-17-Structured-Logging

Sample code from episodes 16 and 17, demonstrating logging and structured logging in ASP.NET Core with Serilog and Seq
C#
2
star
21

EP108-EFLikeOperator

Sample code from Episode 108 of the ASP.NET Monsters Weekly
C#
1
star
22

PickerParty

When awards are given for music, television or movies, get your friends together and use this app to create your pool!
1
star
23

monster-training

Monsters training site
C#
1
star
24

EP204_CsvOutputFomatter

Sample repo for EP204 of the ASP.NET Monsters
C#
1
star
25

Episode-10-Configuration-From-Database

Sample project from episode 10 demonstrating loading settings from a database
C#
1
star
26

Episode-12-DependencyInjection

Sample project from Episode 12 demonstrating dependency injection basics
C#
1
star
27

monster-sponsorship

C#
1
star