SocialApp is a service with Nodejs Implemented based on microservice to allows CRUD operations and the retrieval of basic statistical data.
Use the node package manager [npm] to install SocialApp.
cd gateway
npm install
npm start
cd users
npm install
npm start
cd comments
npm install
npm start
- auto-bind : ^4.0.0
- axios : ^0.27.2
- proxy : ^1.0.2
- config : ^3.3.6
- debug : ^4.3.2
- express : ^4.18.1
- express-async-errors : ^3.1.1
- express-validator: ^6.14.2
- moment: ^2.29.4
- mongoose: ^6.4.3
- mongoose-timestamp: ^0.6.0
- morgan: ^1.10.0
- multer: ^1.4.5-lts.1
- path: ^0.12.7
- request: ^2.88.2
- winston: ^3.8.1
- xregexp: ^5.1.1
- body-parser: ^1.20.0
- Gateway Service http://localhost:8000
- Users Service http://localhost:8001
- Comments Service http://localhost:8002
-
/users : Home of Users Service
-
/manage
- get /:id getUserById
- post /add addUser
- patch /updateProfilePic/:id updateProfilePic
- delete /remove/:id removeUserById
- patch /editUsername/:id editUsernameById
-
/contact
- patch /edit/:id editContactByUserId
- get /:id getContactByUserId
- delete /remove/:id removeContactByUserId
-
-
/comments
- /manage
- post /add/:userId addComment
- delete /delete/:id deleteCommentById
- delete /deleteAll/:userId deleteAllCommentsByUserId
- patch /edit/:id editCommentById
- get /all/:userId getAllCommentsByUserId
- get /:id getCommentById
- /manage