A real-time communication app that allows users to interact using voice or text over the web using WebSockets. This repository contains both the server and client code.
walkie-talkie-app/
├── client/ # Contains the client-side code (Next.js + React)
├── server/ # Contains the server-side code (Express + Socket.io)
├── README.md # Project documentation
- Node.js
- Express.js
- Socket.IO
- TypeScript
- Next.js
- React.js
- Styled-components
To run the application locally, follow the steps below.
Make sure you have the following installed on your machine:
-
Clone the repository:
git clone https://github.com/your-username/walkie-talkie-app.git cd walkie-talkie-app
-
Install dependencies for the server: Navigate to the server directory and install dependencies:
cd server npm install
-
Install dependencies for the client: Navigate to the client directory and install dependencies:
cd ../client npm install
-
Development Mode (with TypeScript hot-reloading):
cd server npm run dev
-
Production Mode (after building): First, build the TypeScript files:
npm run build
Then start the server:
npm start
The server will start on http://localhost:5000
(you can configure this in your server's index.ts
file).
-
Development Mode:
cd client npm run dev
The client will be available at
http://localhost:3000
. -
Production Mode: First, build the Next.js app:
npm run build
Then start the server:
npm start