Giter Site home page Giter Site logo

Comments (2)

tjoudeh avatar tjoudeh commented on August 18, 2024

Hi,
You are right, if you are using localhost then you need to run both projects on the same time, they are two separate projects hosted locally on different ports.
All you need to do is to right click on project .API and choose "Debug" --- > "Start New Instance" and the same applies to the .Web project.
Hope this answers your questions.

Date: Fri, 25 Jul 2014 15:59:38 -0700
From: [email protected]
To: [email protected]
Subject: Re: [AngularJSAuthentication] Congratulations on This Repo (#1)

After a couple of days wrangling, i realized that I do not understand how this application works. While every verification presented in the first two articles worked fine (registering a new user using Postman, login of that user using postman returned the bearer token, etc) once I tried to run the whole application as defined after the Step 10 in the second article - I realized that I do not know which of the two projects:

should be set as a startup project??

One would expect that the execution starts with AngularJSAuthentication.Web - so that everything get's activated as the consequence of parsing the SPA view (index.html). However, once I enter the data to register the first account, I get

This is of course correct exception as the ..../register API is in the AngularJSAuthentication.Web project and thus inacessible.

Is this application expected to be run as two independent IIS hosted apps (using Owin)?


Reply to this email directly or view it on GitHub.

from angularjsauthentication.

tjoudeh avatar tjoudeh commented on August 18, 2024

Hi trooks1017,
Thanks for taking the time to read the posts and drop a comment.
Regarding the service in run event you are absolutely right, I wanted to used Singleton pattern here.

from angularjsauthentication.

Related Issues (20)

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.