Welcome to the Chat App! This repository contains the code for both the client and server components of a simple chat application.
Follow the instructions below to set up and run the Chat App locally on your machine.
- Node.js (v16 or higher)
- npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/tanpreetjolly/swift-chat-app.git
-
Navigate to the project root:
cd swift-chat-app
-
Install dependencies for the client:
cd frontend npm install
-
Install dependencies for the server:
cd ../server npm install
-
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.
-
Start the server (backend):
cd server npm run start
The server will be running at http://localhost:4000.
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
Here are some snapshots of the project: