GithubHelp home page GithubHelp logo

alpineskihouse's Introduction

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.

alpineskihouse's People

Contributors

dpaquette avatar kirill-d-lappo avatar misterjames avatar stimms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alpineskihouse's Issues

Package requires Node version <6.0.0

Running yarn using the current Node LTS 6.9.1 yields the following:

error Error running install script for optional dependency: "/AlpineSkiHouse/src/AlpineSkiHouse.Web/node_modules/optipng-bin: Command failed.
Exit code: 1
Command: sh
Arguments: -c node index.js
Directory: /AlpineSkiHouse/src/AlpineSkiHouse.Web/node_modules/optipng-bin
Output:
path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));

TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/optipng-bin/v0.3.11/vendor/osx/optipng',
  name: 'optipng',
  os: 'darwin' }
    at assertPath (path.js:7:11)
    at Object.basename (path.js:1355:5)
    at /AlpineSkiHouse/src/AlpineSkiHouse.Web/node_modules/download/index.js:35:43
    at each (/AlpineSkiHouse/src/AlpineSkiHouse.Web/node_modules/each-async/each-async.js:63:4)
    at module.exports (/AlpineSkiHouse/src/AlpineSkiHouse.Web/node_modules/download/index.js:33:5)
    at /AlpineSkiHouse/src/AlpineSkiHouse.Web/node_modules/bin-wrapper/index.js:108:20
    at /AlpineSkiHouse/src/AlpineSkiHouse.Web/node_modules/bin-wrapper/index.js:141:24
    at /AlpineSkiHouse/src/AlpineSkiHouse.Web/node_modules/

This is due to an incompatibility between imagemin and Node versions >6 imagemin/imagemin#216

jspm broken on non-Windows builds

The addition of jspm using the .cmd extension in the project.json file makes the publish task fail on non-windows based machines.

Remove gruntfile.js

I think we are using gulp for all our client side build tasks. Can we remove gruntfile.js?

Add jspm install to publish script

I think jspm install needs to be added to the publish script, otherwise those dependencies won't be included in the published package

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.