Ashutosh5370 / mean-authentication

User authentication with the MEAN stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Authentication with the MEAN Stack

A look at managing user authentication in the MEAN stack using the most common MEAN architecture of having an Angular single-page app using a REST API built with Node, Express and MongoDB.

Article: https://www.sitepoint.com/user-authentication-mean-stack/

Requirements

Node.js
MongoDB

Installation Steps (if applicable)

  1. Clone repo: git clone git@github.com:sitepoint-editors/mean-authentication.git
  2. Change into root directory: cd mean-stack
  3. Run: npm install
  4. Make sure MongoDB is running
  5. Start the API server using: npm start
  6. Change into Angular app directory: cd client
  7. Run: npm install
  8. Start the Angular app using: npm start
  9. Visit http://localhost:4200/ to register an account and login

License

SitePoint's code archives and code examples are licensed under the MIT license.

Copyright © 2020 SitePoint

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

User authentication with the MEAN stack


Languages

Language:TypeScript 55.0%Language:JavaScript 30.5%Language:HTML 14.2%Language:CSS 0.3%