Skip to content

anu9901998/mern-social-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN Social Network

Features implemented: user authentication, profile viewing, posting, commenting, and following/unfollowing.

Potential improvements:

  • Add option for user to post images
  • Add option for user to change their avatar/background to a custom image
  • Add social media login options (e.g. Facebook, Google, Twitter)
  • Implement find users feature (i.e. find users by typing their name into a search field)
  • Improve code organization
  • Write more tests

Setup instructions

First install the dependencies:

  1. Clone the repository.
  2. cd into the directory and run npm install.
  3. Run cd client && npm install.

Next, set up the database credentials:

  1. Log into or create an [MongoDB Atlas]

  2. Create a new MongoDB cluster. You can go with the default settings or customize them as you wish. Once the cluster is created, click "Connect."

  3. Whitelist a connection IP address and create a new MongoDB user.

  4. Once connection security is set up, choose "Connect Your Application."

  5. Replace the dbURI in secrets.js, located in backend folder, with the connection string. Replace dbname, and <password> with the user and password you created in step 2.

  6. cd back into the main directory and run npm start. You can access the site at localhost:3000.

Built With

  • Express.js - Backend web framework
  • JSON Web Token - A standard to securely authenticate HTTP requests
  • Material-UI - UI library for React
  • MongoDB - Database to store document-based data
  • Mongoose - Object-modeling tool for Node.js
  • Node.js - Runtime environment to help build fast server applications
  • React - JavaScript library for building user interfaces
  • Redux - JavaScript library to help better manage application state

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published