https://github.com/avinashkrg90/nodejsbackendprojectpostaway2
This is a REST API application for serving social media application, where user can register themselves, login, and post. The post can be commented, liked. comments can be updated and deleted. posts can be liked or unliked. user can make friend requests to other users. friend requests could be accepted or rejected. user can reset their password.
https://github.com/avinashkrg90/nodejsbackendprojectpostaway2
api applications express-js javascript mongodb mongoose rest-api social-media
Last synced: 6 months ago
JSON representation
This is a REST API application for serving social media application, where user can register themselves, login, and post. The post can be commented, liked. comments can be updated and deleted. posts can be liked or unliked. user can make friend requests to other users. friend requests could be accepted or rejected. user can reset their password.
- Host: GitHub
- URL: https://github.com/avinashkrg90/nodejsbackendprojectpostaway2
- Owner: avinashkrg90
- Created: 2024-09-09T10:46:25.000Z (almost 2 years ago)
- Default Branch: backEndNodeJS
- Last Pushed: 2024-09-12T11:29:25.000Z (almost 2 years ago)
- Last Synced: 2025-02-11T13:23:42.988Z (over 1 year ago)
- Topics: api, applications, express-js, javascript, mongodb, mongoose, rest-api, social-media
- Language: JavaScript
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a REST API application for serving social media application, where user can register themselves, login, and post. The post can be commented, liked. comments can be updated and deleted. posts can be liked or unliked. user can make friend requests to other users. friend requests couls be accepted or rejected. user can reset thier password using otp verification (otp being sent to email). Also, user can upload their avatar and change it if required.
**API Structure**
1. Feature - USER
APIs (route - /api/users)
1. post - '/signup'
2. post - '/signin'
3. post - /logout'
4. post - '/logout-all-devices'
5. get - '/get-details/:userId'
6. get - '/get-all-details'
7. put - '/update-details/:userId'
8. post - '/avatar-upload'
9. get - '/get-avatar/:id'
2. Feature - POST
APIs (route - /api/posts)
1. get - '/all'
2. get - '/:postId'
3. get - '/user/:userId'
4. post - '/'
5. delete - '/:postId'
6. put - '/:postId'
3. Feature - COMMENT
APIs (route - /api/comments)
1. get - '/:postId'
2. post - '/:postId'
3. delete - '/:commentId'
4. put - '/:commentId'
4. Feature - LIKE
APIs (route - /api/likes)
1. get - '/:id'
2. post - '/toggle/:id'
5. Feature - FRIEND
APIs (route - /api/friends)
1. get - '/get-friends/:userId'
2. get - '/get-pending-requests'
3. post - '/toggle-friendship/:friendId'
4. post - '/response-to-request/:friendId'
5. post - '/send-friend-request/:friendId'
6. Feature - OTP
APIs (route - /api/otp)
1. post - '/send'
2. post - '/verify'
3. post - '/reset-password'