Skip to content

social media applicaiton built using nestjs, prisma, graphql, redis and docker.

Notifications You must be signed in to change notification settings

aymanshalaby55/SocialBridge

Repository files navigation

Social Media API

Nest Logo

A social media API built with NestJS, GraphQL, and Redis for caching.

Features

  • User authentication and authorization
  • Post creation and management
  • Comments and likes system
  • Friends system with status tracking
  • Redis caching for improved performance
  • GraphQL API for flexible queries

Tech Stack

  • Framework: NestJS
  • Database: PostgreSQL
  • Cache: Redis
  • API: GraphQL
  • Real time: graphql-ws, graphql-subscriptions
  • Authentication: Passport-JWT

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/social-media-api.git
    cd social-media-api
  2. Set up environment variables: Create a .env file in the root directory and add the following variables:

    DATABASE_URL=postgresql://ayman:social@localhost:5432/mydatabase
    REDIS_URL=redis://localhost:6380
    JWT_SECRET=your_jwt_secret_key
    
  3. Start the Docker containers:

    docker-compose up -d
  4. The API will be available at:

    http://localhost:your-port/graphql
    
    
    

About

social media applicaiton built using nestjs, prisma, graphql, redis and docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published