Banter is a chat application built using Next.js and PostgreSQL. This guide will walk you through the local setup process.
Before setting up Banter locally, ensure you have the following tools installed:
- Node.js
- Yarn (package manager)
- Docker (for running PostgreSQL and Redis)
- Clone the repository:
git clone https://github.com/kant-github/banter.git
- Install the dependencies:
yarn install
- Setup Envs:
GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET=
- Database Setup:
docker run -d -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 postgres
- Gnerate DB client:
cd packages/db && npx prisma generate && cd ../..
- Start Redis locally:
docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
- Start the application locally:
yarn dev