Mean stack blog with authentication and session management and restricting apis based on session.
Blog include functionalities and NodeJs APIs as follows:
NODEJS:
1)Register user
2)Login user
3)express-session & also JsonWebToken module to restrict some APIs for logged in users.
4)ADD,EDIT,DELETE,GET Blog
5)Add blog based on userId
6)view particular blog based on Id.
5)Upvote blog and comments.
6)comment ADD,EDIT,DELETE and sorting according to upvotes.
ANGULARJS:
Route Restrictions to some pages requiring user login.
handling server authentication with localStorage.
Clone the project
git clone https://github.com/vigilante95/Mongo-Express-Angular-NodeJs-MEAN-STACK-BLOG-with-auth.git
- Check if mongodb service is running in your machine else start the service.
- You need to have node and npm installed in your machine.
- open up your teminal or command prompt go to the directory
chat
- Do install all dependencies using
npm install
npm install -g nodemon
nodejs server.js or nodemon server.js
Your server will be setup and ready for use.
- Go to browser and type
localhost:8888
in place of url. - Register user by giving basic details.
- Login from the same screen.