kukutapuvarun/Social-Networking-Service-Website

Kukutapu Varun Kumar

SNS App
A Social Networking Service (SNS) application built using the MERN stack (MongoDB, Express.js, React, Node.js).

Table of Contents

Introduction

This SNS app allows users to create an account, log in, create posts, follow other users, and interact with posts by liking and commenting. It is built using the MERN stack to provide a robust, full-stack JavaScript solution.

Features

User authentication (Sign Up, Login)
Create, read, update, and delete posts
Like and comment on posts
Follow and unfollow users
User profile pages
News feed showing posts from followed users

Installation

Prerequisites

Make sure you have the following installed:
Node.js
MongoDB
npm or yarn

Steps

Clone the repository
Install server dependencies
Install client dependencies
Create a .env file in the server directory and add the following variables:
Start the server and client
The server will run on http://localhost:5000 and the client on http://localhost:3000.

Usage

Open your browser and navigate to http://localhost:3000.
Sign up for a new account or log in with an existing account.
Start creating posts, following users, and interacting with posts.

API Endpoints

Authenticationl

POST /api/auth/signup: Sign up a new user
POST /api/auth/login: Log in a user

Posts

GET /api/posts: Get all posts
POST /api/posts: Create a new post
GET /api/posts/:id: Get a specific post
PUT /api/posts/:id: Update a specific post
DELETE /api/posts/:id: Delete a specific post
POST /api/posts/:id/like: Like a post
POST /api/posts/:id/comment: Comment on a post

Users

GET /api/users: Get all users
GET /api/users/:id: Get a specific user
PUT /api/users/:id: Update a user
DELETE /api/users/:id: Delete a user
POST /api/users/:id/follow: Follow a user
POST /api/users/:id/unfollow: Unfollow a user

Technologies

Frontend: React, Redux, Axios
Backend: Node.js, Express.js
Database: MongoDB, Mongoose
Authentication: JWT (JSON Web Tokens)
Styling: CSS, Material-UI

Contributing

Contributions are welcome! Please follow these steps to contribute:
Fork the repository
Create a new branch (git checkout -b feature/your-feature)
Commit your changes (git commit -m 'Add some feature')
Push to the branch (git push origin feature/your-feature)
Open a pull request
Like this project

Posted Sep 26, 2024

This project is a MERN stack social networking app with features like user authentication, posts, comments, likes, follows, using JWT for secure logins.

Sales Prediction and Customer Insights Analysis
Sales Prediction and Customer Insights Analysis
PyTorch for image classification
PyTorch for image classification

Join 50k+ companies and 1M+ independents

Contra Logo

© 2025 Contra.Work Inc