This is code for both server side and client side. The login fetches data from server and deliver it to angular service for authentication. The guard is also implemented for proper security and refreshing and closing of browser never logs you out
- install node module through npm install in both the client and the server
- insure that your mongodb is running and you have same database. If not make sure
- open server folder and start server a message will be diplayed ensuring running
- open client folder and repeat the above