A full stack social media appllication.
Build with node js & react.
API Routes:
1- Auth routes
/auth/register --> to register user
/auth/login --> to login user
2- Users routes
/users/:id --> to find user by id
/users/:id/friends --> to find user friends
/users/:id/:friendId --> to add a friend to a user
3- Posts routes
/posts --> to get all feed posts
/posts/:userId/posts --> to get user posts
/posts/:id/like [ send user id in body ] --> to like a post
Enviroment Variabels:
MONGO_URL='***' (your mongo db url)
PORT=3001
JWT_SECRET='***' (JWT Secret for auth)