Name: Vatsal Bhuva
Enrollment Number: IIT2022004
Bucket: Backend
A fully functioning social media website's backend, crafted together using Express, Node.js, Multer, bcrypt, and more!
- express
To handle the different HTTP requests.
- mongoDB
Backbone of it all. Stores all the information, using which the HTTP requests access/store information
- node.js
To install the different npm packages.
- multer
To upload and store files as posts/pictures/videos.
- bcrypt
Security is key. This enables hashing and salting passwords to secure the user's information. So, in the event of a data leak, only the hashed password is available which is very hard to crack.
- jwt
Enables you to "stay logged in" across the different routes. JWT handles the authentication part so you don't have to login again and again.
- cookieParser
Storing the JWT key in a cookie allows the JWT to be verified, ensuring that only a logged in user can perform most of the activities.
Paste the following link to open postman in your browser to directly simulate the requests.
https://www.postman.com/universal-comet-532028/workspace/webd-task2-iit2022004/collection/29122774-5240a42b-9036-4b8e-912c-5082ffd517c5?action=share&creator=29122774
Let's have a look at the different functionalities of the website, and how to use them.
Note: the profile won't be visible as this is just the backend part. The image can, however, be rendered using frontend as the image's relative path is stored in the database. The same applies to viewing a user's posts as well.
Mail me at: [email protected]
LinkedIn: https://www.linkedin.com/in/vatsal-bhuva-673587233/ Instagram: https://www.instagram.com/_.vb11/