Develop a Social Media API using NodeJS, ExpressJS, and GraphQL. The API will simulate basic functionalities of a social media platform, such as user registration, posting content, and following other users.
- Login/Register
- Graphql Query
- Follow User
Clone This project to you local machine by following this commands
git clone https://github.com/gopal24-colab/IdiaClan-SolcialMedia.git
cd IdiaClan-SolcialMedia npm installor
yarnTo run this project, you will need to add the following environment variables to your .env file
PORT as you like, example 3000
MONGODB_URI your local mongodb url or mongodb atlas url
Create your personal account and add url into .env file
https://www.mongodb.com/atlas/database
JWT_SECRET_KEY
Add any 32 digit length secret key
or use below command
openssl rand -base64 32SESSION_SECRET_KEY
Add any 32 digit length secret key
or use below command
openssl rand -base64 32npm run dev
GET http://localhost:3000
POST /api/v2/user/register{
"username": "Gopal Sasmal",
"email": "gopalsasmal@gmail.com",
"password": "12321312"
} POST /api/v2/user/login{
"email": "gopal@gmail.com",
"password": "12321312"
} POST /api/v2/post/create{
"data": "Ability to request nested data in a single query, simplifying client-side data handling"
} GET /api/v2/post/allPost POST /api/v2/user/followUser{
"userId": "65f9174a458b5a2f45769ba0"
}provide userId that you wants to follow
https://03298ff0-677c-4127-b9e5-a2dcd8dbfd49-00-1aauyq2xjbtu5.worf.replit.dev/ [Github](https://github.com/gopal24-colab/IdiaClan-SolcialMedia) https://replit.com/join/newluiqxqy-shadowxkrishnaFor query please connect , email: gopalsasmal1806@gmail.com or