简体   繁体   中英

Basic authentication for my app - Node JS & Mongo as backend and Angular as front end

I've decided I need to take on some new challenges and so decided I want to learn to build an app using mongo db, node js, and angular.

I have a little knowledge on NodeJS, but I am totally new to AngularJS and NodeJs authentication. I am creating a simple blogging app in AngularJS as the front end and NodeJs-MongoDB combo as backend, where in users can

  1. create account
  2. login to existing account
  3. write some new blog (can mark it as private)
  4. view his previous blogs
  5. view others blog (which weren't marked private)

Need some help on how to have a basic level authentication for user login at the backend side and how to maintain cookies and sessions.

Make life easy. Express & Stormpath. You should have full auth up in a few minutes.

https://docs.stormpath.com/nodejs/express/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM