MEAN Stack Front To Back [Part 1] - Project Introduction
Why Stack Overflow recommends it
Stack Overflow users link it when answering questions about Passport.js, Express and MEAN stack authentication, or as the tutorial their own app was built from.
Recommended by 3 people across 3 different months, 2017 to 2019.
What it is
The first part of Traversy Media's MEAN Stack Front to Back series, which introduces a full-stack project built with Node.js, Express, MongoDB, Mongoose, Passport.js, JWT authentication and Angular 2. It outlines what the series covers, including deployment, and is presented by Brad Traversy.
What people said
Strong rec Stan · 2017-12 · Stack Overflow · on “Is passportjs for client side or server side?”
Passport.js is middleware that is used server-side with Node.js to implement authentication. You would use Angular (or Postman if you have no front-end yet) to access profile information stored in the database using API endpoints. There is an excellent video series by Brad Traversy on Youtube that I went through this past weekend that goes over exactly what you're asking about: MEAN Stack Front to Back [this video] , where he builds a MEAN authentication app using passport. Since the code was written 10 months ago, it was a little outdated, but I summarized all of the code-breaking changes in my github repo: [LINK] . You can also see the finished product in action and download my source code if y
Recommends Kamil Kulach · 2018-02 · Stack Overflow · on “Nodemon - "clean exit - waiting for changes before restart" during setup”
I've quickly looked at the tutorial but it's slightly incomplete. The app object is never created nor does it explain how to create an Express server. I recommend you watch these tutorials instead [this video] it's a mean stack tutorial but angular doesn't come to play till around part 5. The first 3-4 parts are great if you want to learn how Express works. When you're done with it you should be able to do the same with SQL.
Recommends ALPHA · 2019-03 · Stack Overflow · on “How to write to MongoDB database from EJS, Javascript?”
to this question the answer simply cannot give like this... What I can do is to guide you to a proper way to learn this technology here [LINK] you will see what is express and how to use it to configure a backed API.. here [this video] you will learn further about this full stack and how it is falling with every technology perfectly.. this is a Brad traversy's tutorial.. Also I learned from him.. So give it a go I'm saying this with trust ... just look at my reputation .. that's proof how much 've learned from him .. cheers mate :)
Cites Carlos Alvarez · 2017-04 · Stack Overflow · on “how to set Sessions when log in using Passport and Express in order to req.user._id?”
I have already a MEAN app based in this tutorial: [this video] (Great one by the way). The functionality includes: register, login, Authentication using Jwt Strategy and a Sessions. To handle the Sessions it uses the front end (Angular2) to store the user credentials in the localStorage of the browser. I personally I think this is a lack of security and as well I want to include a To Do list that belongs to a user, having two models 'users' and 'tasks' (one to many). That's why I need the current user._id as a reference. Example POST newTask: var task = new Task({ title: req.body.title, owner : req.user._id }); I read another way to handle Sessions, storing the current user at the backend, using
Cites Anthony Bandoly · 2017-07 · Stack Overflow · on “Node.js Express Angular app not affected by file updates”
I have a very simple Node.js/express app that I built using the tutorial by Traversy Media here: [this video] During the build process, I would make updates to the .ts and .HTML files in the components directory and the web app would reflect the changes. I've since uploaded the project to github and cloned it to a new MEAN stack on Ubuntu. Now, when I make changes to the component files and the angular-src directory, the app is totally unaffected and continues to run as if no changes were made to any of the files. I've tried to start and restart Node.js but I feel like the app is compiled or "built" now and is no longer referencing my files. How do I get back to the point where I can further deve