It is like a social media app it has login, sign up, send friend request. Add friend, create post, edit profile, forgot password. (as like Facebook clone) :( without chat option
The task for Backend dev:
Social Media Application :
Design and develop REST APIs using node.js for a mini social media app which including the following ( Frontend is not required ):
git clone https://github.com/aadilraza339/Social-Media-like-Facebook.git
cd Social-Media-like-Facebook
npm intall
mkdir redis && cd redis
curl -O http://download.redis.io/redis-stable.tar.gz tar xzvf redis-stable.tar.gz
cd redis-stable
make
make test
redis-server
config your .env
import code.sql in your MySql DB
Now is time to run it 🥳 In the root directory👇 nodemon app.js
Express
JWT
bcrypt
knex
mysql
nodemailer
redis
These are the endpoints Below you Can run them using postman, here is the link for downloadclick here
router.post('/signup', userControllers.userRegister);
router.post('/login', userControllers.userLogin);
router.get('/home', checkAuth, userControllers.get_post);
router.get('/user/:username', checkAuth, userControllers.getMe);
router.post('/forgotpassword', userControllers.forgotP);
router.post('/reset',userControllers.resetP)
router.post('/newpost', checkAuth, userControllers.newpost);
router.delete('/deletePost/:post_id', checkAuth, userControllers.deletePost)
router.put('/editprofile', checkAuth, userControllers.updateProfile)
router.post('/sendReq/:fId', checkAuth, friendControllers.sendReq);
router.get('/friendlist', checkAuth, friendControllers.friendlist);
router.post('/:Action/:fId', checkAuth, friendControllers.Frirequest);