Code Monkey home page Code Monkey logo

mern-social-media-app's Introduction

Sociopedia - A Social media web application

Table of contents

Introduction

An Social media web application build using Node js, Express js in the backend, MongoDb for database management and React.js to render User Interfaces.

NOTE: Please read the RUN section before opening an issue.

Demo

This is a Social media web application where users can post their pictures, view other people profiles, like post, add/remove friend.

This is an image

Run

To run this application, you have to set your own environmental variables. For security reasons, some variables have been hidden from view and used as environmental variables with the help of dotenv package. Below are the variables that you need to set in order to run the application:

  • NODE_ENV: Specify the enviroment as development of production

  • PORT: Specify the port Number

  • MONGO_URI: Specify the Mongodb URI to access the database

  • JWT_SECRET: Specify the secret which is used to generate JWT token on authorization

After you've set these environmental variables in the .env file at the server folder of the project, and intsall node modules using npm install in both server and client folder.

Now you can run npm run dev in the terminal to run server and 'npm start' to run client and the application should work.

Technology

The application is built with:

  • Node.js
  • MongoDB
  • Express.js
  • JWT authentication and authorization
  • MVC architecture
  • Request protection using helmet
  • React.js
  • Redux and Redux toolkit for global state management
  • Redux persist to store redux store in localstorage
  • React router dom for client routes
  • Material UI for user interfaces
  • Formik for form handling and Yup for validation
  • Image upload using multer grid-fs storage
  • Used Eslint airbnb configuration and some custom rules to maintain code standards

Features

The application displays different posts posted by users, logged in users friends list and their posts

Users can do the following:

  • Create an account, login or logout
  • View friends list
  • View friends of friend
  • Add friend
  • Remove friend
  • Like/dislike post
  • Change mode to dark/ light
  • Upload a post

Copyright 2022 © Jafin Jahfar

mern-social-media-app's People

Contributors

jafin01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sunilgitb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.