A simple blogging webapp built using NodeJS, ExpressJS and MongoDb. Authenticated and authorization functions with passport
- SignIn - Login into existing account
- SignUp - Signup using username and password
- Add Post - Add your post with an image and text
- Remove - Remove a post
- Edit - Edit an existing post
- GET /posts - To view all the posts
- GET /user/:username - To view specific post by a user
- POST /posts/publish - To add new post (when user is authenticated andauthorized only)
- GET /posts/:id - To get a post with specific id
- PUT /posts/:id - To update specific post with unique Id
- Delete /posts/:id - To delete specific post with unique Id
├── app.js
├── middleware
└── index.js
├── models
├── comment.js
│ ├── post.js
│ └── user.js
├── node_modules
├── package.json
├── package-lock.json
├── public
├── readme.md
├── routes
│ ├── comments.js
│ ├── index.js
│ ├── posts.js
│ └── user.js
└── views
├── comments
├── landing.hbs
├── login.hbs
├── posts
└── register.hbs
- Git clone repository
- Then run these commands in terminal/shell
npm install
npm start