Welcome to this MERN (MongoDB, Express.js, React, Node.js) Stack practice project, a social platform designed for user interaction. This platform enables users to register, log in, share posts, images, follow other users, and like posts. Currently, the follow functionality is not implemented on the front end side but you can use any api tester to manually call those endpoints (explained at the end).
- ReactJS
- Vanilla CSS
- Implemented in Node.js.
- Utilizes MongoDB as the database.
- Mongoose is employed for seamless interaction with the database.
- Helmet is employed to securely store images locally on the server.
- Utilizes bcrypt encryption for secure password storage.
- NodeJS
- MongoDB Installed Locally on the Machine OR you can provide your own MongoDB atlas link in the connection url in the index.js file in the node.
- Mongosh or MongoDbCompass for locally running the database
yarn
yarn start
npm i
npm start
- Rename .env.example to .env
- Run the database locally using mongosh or mongoDbCompass
- If don't wanna run locally then register for MongoDB Atlas and provide it's connection URL in the index.js connection string.
yarn or npm i
node index.js
- Install Insomnia or Postman or whichever api tester you like
- Make a Request to the id of the user like that (localhost:8800/api/users/6554d799c5b17aa4e37f2e85/follow) Must include the login user id in the body "userId" variable like below
