.env
file in the server
directory and add the following variables:http://localhost:5000
and the client on http://localhost:3000
.http://localhost:3000
.POST /api/auth/signup
: Sign up a new userPOST /api/auth/login
: Log in a userGET /api/posts
: Get all postsPOST /api/posts
: Create a new postGET /api/posts/:id
: Get a specific postPUT /api/posts/:id
: Update a specific postDELETE /api/posts/:id
: Delete a specific postPOST /api/posts/:id/like
: Like a postPOST /api/posts/:id/comment
: Comment on a postGET /api/users
: Get all usersGET /api/users/:id
: Get a specific userPUT /api/users/:id
: Update a userDELETE /api/users/:id
: Delete a userPOST /api/users/:id/follow
: Follow a userPOST /api/users/:id/unfollow
: Unfollow a usergit checkout -b feature/your-feature
)git commit -m 'Add some feature'
)git push origin feature/your-feature
)Posted Sep 26, 2024
This project is a MERN stack social networking app with features like user authentication, posts, comments, likes, follows, using JWT for secure logins.
0
0