Skip to content

shishirkj/blinkchat

Repository files navigation

SETTING UP LOCALLY

Prerequisites

Installing

  • Clone the repository:

    git clone https://github.com/yourusername/project-name.git
  • Navigate into the project directory

  • create .env.local at root level

ENV VARIABLES

mongodb

-MONGODB_URI="MONGOATLAS URI"

redis

-UPSTASH_REDIS_REST_URL="UPSTASH_REDIS URL"

-UPSTASH_REDIS_REST_TOKEN="TOKEN API"

clerk auth

  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="CLERK PUBLISHABLE KEY"

  • CLERK_SECRET_KEY="SECRET KEY"

NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in

NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up

NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/home

NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/home

webhook clerk

  • WEBHOOK_SECRET="WEBHOOK CLERK KEY"

node mailer

  • SMTP_HOST=smtp.gmail.com

  • SMTP_PORT=465

  • SMTP_SERVICE=gmail

  • SMTP_MAIL=""

  • SMTP_PASSWORD=""

NEXT_PUBLIC_MODE=dev MODE=dev

socket

  • PUSHER_APP_ID=""

  • PUSHER_APP_SECRET=""

  • NEXT_PUBLIC_PUSHER_APP_KEY=""

APIS

image

Design of the application

load balancing and sharding not yet added

image