Skip to content

tanpreetjolly/simple-chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Chat App

Welcome to the Chat App! This repository contains the code for both the client and server components of a simple chat application.

Flow of website

flow

Getting Started

Follow the instructions below to set up and run the Chat App locally on your machine.

Prerequisites

  • Node.js (v16 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository:

    git clone https://github.com/tanpreetjolly/swift-chat-app.git
  2. Navigate to the project root:

    cd swift-chat-app
  3. Install dependencies for the client:

    cd frontend
    npm install
  4. Install dependencies for the server:

    cd ../server
    npm install

Running the App

  1. Start the frontend (frontend):

    cd frontend
    npm run dev

    This will launch the client application, and you can access it in your web browser at http://localhost:5173.

  2. Start the server (backend):

    cd server
    npm run start

    The server will be running at http://localhost:4000.

Sample Environment File

Create a .env file in the server folder with the following content:

DB=""
JWTPRIVATEKEY = 
SALT = 
PORT = 4000
BASE_URL = "http://localhost:5173"
HOST=
SERVICE=
EMAIL_PORT=587
SECURE= true
SMTP_USER=""
SMTP_PASS=""
NODE_ENV=development

Snapshots

Here are some snapshots of the project:

Home Screen Register Login ChatHome Profile

About

A chatapp built with WebSocket API and ws lib. MERN Stack with TailwindCSS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages