Loading repository data…
Loading repository data…
RahulSaini02 / repository
This repository contains a full-stack chat application with a Next.js frontend and a Flask backend. The project is designed for real-time messaging with cloud-based services.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This repository contains a full-stack chat application with a Next.js frontend and a Flask backend. The project is designed for real-time messaging with cloud-based services.
project-root/
│── client/ # Next.js frontend
│── server/ # Flask backend
│── .gitignore # Git ignore file
│── README.md # Documentation
└── package.json # (Optional) If using workspace management
git clone git@github.com:RahulSaini02/real-time-chatapp-using-websockets.git
cd your-repo
cd client
npm install # or yarn install
npm run dev # Starts development server
cd ../server
python -m venv venv # Create virtual environment
source venv/bin/activate # On Windows use: venv\Scripts\activate
pip install -r requirements.txt
python app.py
| Method | Endpoint | Description |
|---|---|---|
| POST | /login |
| User login |
| POST | /register | User signup |
| GET | /chats | Fetch user chats |
| POST | /message | Send a new message |
If PostgreSQL is not installed, install it using:
brew install postgresql
sudo apt update
sudo apt install postgresql postgresql-contrib
choco install postgresql
After installation, start the PostgreSQL service:
sudo service postgresql start # Ubuntu/Debian
brew services start postgresql # MacOS
Log into PostgreSQL:
psql -U postgres
Then, create a database for the chat app
In the .env file, update:
DATABASE_URL=postgresql://chat_user:securepassword@localhost/chat_app