Giter VIP home page Giter VIP logo

priyanshu88 / mern-media-frontend Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 348 KB

Full Stack Social Media App using MongoDB, ExpressJS, ReactJS, NodeJS, JWT Authentication, Cloudinary Storage API, React-Router-DOM, Materialize CSS

Home Page: https://mern-media-frontend.vercel.app

License: MIT License

HTML 5.09% CSS 4.48% JavaScript 90.43%
bcryptjs context-api expressjs jwt-authentication materialize-css mongodb nodejs react-lazy-load-image-component react-redux react-router-dom

mern-media-frontend's Introduction

logo

MERN Social Media

MERN Media has the login, logout and signup features using JWT(JSON Web Token) authentication and BcryptJS has been used for encrpyting and decrypting purpose. The users can view others and their own profile and can make a post with their title and contents also they can like, dislike, comment on posts and follow, unfollow the other people as well as They can view the posts from their follwing. NodeJS has been used as a backend, ExpressJS for API Calls, MongoDB for storing the documents and collections, Cloudinary for storing the images.

📔 Table of Contents

🌟 About the Project

📷 Screenshots

  • Application Home page & Demo
image

  • Other User Page
image

  • User Profile Page
image
  • Followings' Post Page
image

📹 Demo

IMAGE ALT TEXT HERE

Visit the backend HERE.

👾 Tech Stack

Client
Server
Database

🎯 Features

  • JWT Authentication
  • Protected Routes
  • Custom User Profile
  • Create and Delete Post Functionality
  • Like, Dislike and Comment Feature
  • Follow and Unfollow users
  • View others and own user profile
  • See the following user posts

🎨 Color Reference

Color Hex
Primary Color #040810 #040810
Secondary Color #393E46 #393E46
Accent Color #00ADB5 #00ADB5
Text Color #EEEEEE #EEEEEE

🔑 Environment Variables

To run this project, you will need to add the following environment variables to your .env file

JWT_SECRET

MONGODB_URI

CLOUDINARY_URL

🧰 Getting Started

‼️ Prerequisites

  • Install Node JS in your computer Here
  • Create MongoDB account Here
  • Get Cloudinary URL Here
  • Learn about JWT Here

⚙️ Installation

Backend:

Install the project with npm Create a backend folder

npm init

then run:

npm install --save

Install other dependencies from Backend/package.json.

Frontend:

Install the project with npm Create a frontend folder

npx create-react-app my-project

Install other dependencies from Frontend/package.json.

🧪 Use Materialize CSS, React-Router-DOM, Cloudinary, MongoDB

  1. Head over to the materialize css website, copy the CDN command and paste it in index.js.

  2. Install React-Router-DOM using npm install react-router-dom.

  3. Visit Cloudinary and from setting copy the apit link and use it.

  4. Create account on Atlas website, create a project and from the connect option copy the Nodejs URI and use it.

🏃 Run Locally

Create a folder Clone the backend project

https://github.com/Priyanshu88/Mern-Media-Backend/

then clone the frontend project

https://github.com/Priyanshu88/Mern-Media-Frontend/

Go to

https://github.com/Priyanshu88/Mern-Media-Backend/

run npm install and type npm start then go to

https://github.com/Priyanshu88/Mern-Media-Frontend/

run npm install and type npm run start

Learn More

This project uses react-lazy-load-image-components to optimize and load images.

👋 Contributing

Contributions are always welcome!

🤝 Contact

Priyanshu Pandey - @twitter_handle - [email protected]

Project Link:

  1. https://github.com/Priyanshu88/Mern-Media-Backend/
  2. https://github.com/Priyanshu88/Mern-Media-Frontend/

mern-media-frontend's People

Contributors

priyanshu88 avatar

Stargazers

 avatar

Watchers

 avatar

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.