/mern-graphql

A MERN Stack based social media application with GraphQL APIs

Primary LanguageJavaScript

Social Media Application

MERN with GraphQL

Features:

  • Login
  • Signup
  • View Posts
  • Add New Post
  • Like/Unlike any Post
  • View Detail page of any view
  • Comment on any Post
  • Delete your Posts & Comments

Run Locally

  • Take latest pull using git pull origin main
  • Move to frontend folder using cd frontend
  • Start frontend using npm start
  • Install all dependencied npm i
  • Move to backend folder cd backend
  • Install all dependencied npm i
  • Start backend using npm start

Try Build

  • You can also try server builds using npm run build

Packages Used

Frontend Packages

- apollo/client v3.6.9,
- react v18,
- react-router v6.3.0,
- semantic-ui-react v2.1.3,

Backend Packages

- apollo-server-core v3.10.1,
- apollo-server-express v3.10.1,
- graphql v16.6.0,
- graphql-subscriptions v2.0.0,
- subscriptions-transport-ws v0.11.0,

Deployment

just run

- docker-compose up -d

to stop all containers

- docker-compose down

to stop and remove all containers

- docker-compose down -v