- node version : v16.13.0 (min.)
- NodeJs
- Express
> git clone https://alkeshrails:[email protected]/alkeshrails/BooTestTaskNode.git
> cd <Project Directory>
Run :-
> npm install
> npm start
After running the start command the server will start on localhost:3001
/profile
- Method :
GET
- Description :-
This API is used to display the default profile and show the data in the UI
profile/${profileId}
- Method :
GET
- Description :-
This API is used to display the perticular profile ID and show the data in the UI
/api/profile
- Methods:-
POST
,GET
- Description :-
This end-point is used to create profile and get the profile
/api/post
- Methods:-
POST
,GET
/api/post?sort=Best
:- It will be sort descending order according to likes
/api/post?sort=Recent
:- It will be sort recent one on top
- Description :-
This end-point is used to create a post and get a profile
/api/comment
- Methods:-
POST
,GET
- Description :-
This end-point is used to create a comment and get a comment
api/likes
-Methods:- POST
,GET
-Description :- This end-point is used to add a like a post and unlike post
For the testing I have created the postman collection where all the routes are there for easy get idea about the request and response u