GithubHelp home page GithubHelp logo

iambobbyballe / angular-php-login-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from healthy380/angular-php-login-demo

0.0 2.0 0.0 189 KB

Simple AngularJs application that uses Slim framework for consuming an API to login and register users using a token as a way of authentication.

License: MIT License

ApacheConf 4.04% PHP 75.53% Shell 0.20% JavaScript 10.70% HTML 7.98% CSS 1.56%

angular-php-login-demo's Introduction

Angular-php-login-sample

This is a sample application that uses token authentication for an AngularJS project. The application allows you to add, delete, edit job posts.

The following stack is used in order to create the backend:

View demo in progress..

Backend

The files of importance here are:

  • index.php // this file contains the routes to login, register, and the job handling as well as my account.
  • models/trucking.php // helper class.

Index.php contains the route that handles the requests sent by the client application. The trucking model handles addition, deletion, and updating of a job post. It also handles the returns of jobs.

Front End

To see how the authentication is done, you can see the following files:

  • /services/authfact.js handles the authentication process.
  • /account/dashboard shows one way to pass the token for the server to validate.

angular-php-login-demo's People

Contributors

noyman380 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.