Skip to content

Repository files navigation

Chat App

This is a simple chat app with a single chat room. Anyone can go to the website, log in with an identifier, and send messages.

Run Locally

Make sure you have node js installed before proceeding.

Clone the project

  git clone https://github.com/tanushchauhan/chat-app.git

Go to the project directory

  cd chat-app

Install dependencies

  npm install

Build the app

  npm run build

Start the server

  npm start

You will also need to set up a database in Superbase and ensure real-time subscribing for insert queries is enabled. You will also need to change the key and URL in the application code.

API Reference

Get last 50 messages

  GET /api/chats

Send a message

  POST /api/chats
Body content Type Description
{ sender, content } string Required. The identifier of the sender as sender and the message itself as content

Authors

Screenshots

App Screenshot

App Screenshot

App Screenshot

Used by

Contributors

Languages