Skip to content

kant-github/banter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banter

Banter is a chat application built using Next.js and PostgreSQL. This guide will walk you through the local setup process.

Table of Contents

Prerequisites

Before setting up Banter locally, ensure you have the following tools installed:

  • Node.js
  • Yarn (package manager)
  • Docker (for running PostgreSQL and Redis)

Installation

  1. Clone the repository:
    git clone https://github.com/kant-github/banter.git
  2. Install the dependencies:
    yarn install
  3. Setup Envs:
    Copy the given lines in apps/web's .env file
    GOOGLE_CLIENT_ID=
    GOOGLE_CLIENT_SECRET=
    
  4. Database Setup:
    Run this in your terminal
    docker run -d -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 postgres
  5. Gnerate DB client:
    cd packages/db && npx prisma generate && cd ../..
  6. Start Redis locally:
    docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
  7. Start the application locally:
    yarn dev

Go the browser at localhost:3000