This source code is part of Securing MEAN Stack (Angular 5) Web Application using Passport tutorial.
Cloned from https://github.com/didinj/mean-angular5-passport-authentication
To run locally:
- Run MongoDB server
- Clone this repo
- Run
npm install
- Run
npm install --save-dev @angular-devkit/core
- Run
npm start
Linux:
Start mongoDB:
sudo service mongod start
Windows:
source Run as Admin:
npm install --global --production windows-build-tools
Run MongoDB:
"C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe" --dbpath="c:\data\db"
Fixes:
source
When HttpClient get request response null
. It's because header is null.