Coder Social home page Coder Social logo

angular-auth's Introduction

angular-auth

Authorized spa on Angular

  • Build a simple web site with Angular 11. You will provide a working “Vs Code” Buildable Project with build and run instructions.
  • Use WebPack and Bootstrap 4
  • Make frequent updates to GitHub with full description of commits
  • WebSite will have a user login, logout feature.
  • WebSite will connect to a WebSocket, when the websocket sends a “logout” message, the logged in user will be logged off the forwarded to the login page.
  • WebSite will have a welcome screen, welcoming the user with his own message. (You will be getting that messsage from an API call)
  • Authentication will be done through REST API calls.

JSON REQUEST :

{
    "email": "[email protected]",
    "password": "SeanPass"
}

SAMPLE RESPONSE :

{
    "data": {
        "userGroup": 0,
        "token": "8a2cfe059e8642b7adc367c6415428a6"
    },
    "status": 0,
    "error": null
}

API REQUEST MODEL:

public class ApiRequest
    {
        [JsonPropertyName("email")]
        public string Email { get; set; }
        [JsonPropertyName("password")]
        public string Password { get; set; }
    }

API RESPONSE MODEL:

public class ApiResult<string>
    {
        [JsonPropertyName("data")]
        public string Data { get; set; }
        [JsonPropertyName("status")]
        public ApiStatus Status { get; set; }
        [JsonPropertyName("error")]
        public string Error { get; set; }
    }
    public enum ApiStatus
    {
        Ok = 0,
        Error = 1
    }

angular-auth's People

Contributors

hasanbinboga avatar

Watchers

James Cloos 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.