Code Monkey home page Code Monkey logo

z4a-dotnet-scaffold-auth's Introduction

Foundation for Apps .Net Scaffold with Authentication

NuGet Package Found here.

This is the default template project for Foundation for Apps for .Net with Authentication. It's powered by Node, Gulp, Angular, and libsass. It also runs off the .Net WebApi with Token authentication. It provides you with a basic template to get started with Angular and Foundation for Apps.

Requirements

You'll need the following software installed to get started.

  • Node.js: Use the installer provided on the NodeJS website.
  • Git: Use the installer for your OS.
  • Ruby: Use the installer for your OS. For Windows users, JRuby is a popular alternative.
    • With Ruby installed, run gem install bundler sass.
  • Gulp and Bower: Run [sudo] npm install -g gulp bower

Get Started

Once you've added this NuGet package to an empty solution, you need to rebuild the client side assets by running the following commands from the project root (not solution root):

bower install
bundle
gulp build```

## Update .Net Packages

Once this is complete, you'll need to update the packages library (to prevent an odd OWIN mismatch). Open the Package Manager Console and enter the following command:

`Update-Package`

## Configure and Update the Database

Next, update your Web.config file and set the connection string to target your database. We will create and run the initial database migration sine leaving an existing migration in the NuGet package will not work. Enter the following commands at the Package Manager Console:

```Enable-Migrations
Add-Migration CreateInitialTables
Update-Database```

From here you should be able to build and run the app.

## Service Configuration
After the first time you run the app, make note of the base Url of the app. You'll need to update the client/assets/js/factories.js file on line 4 to set the serviceBase variable properly. Make sure to include the trailing slash at the end of the Url. 

## Configuration Complete
Now you sholud be able to go to the signup page, create an account (all fields are required), and then login with those credentials to interact with the app.

Build your app and enjoy!

z4a-dotnet-scaffold-auth's People

Contributors

dillie-o avatar

Watchers

 avatar  avatar

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.