A chat application built with Node.js, Express, Socket.io for the backend, and Vite for the frontend.
Ensure that you have the following software installed on your system:
- Node.js (v16 or higher)
- npm (comes bundled with Node.js)
-
Clone the repository:
git clone https://github.com/capgravity/text-wave.git cd text-wave -
Install backend dependencies:
npm install
-
Set up environment variables:
-
Create a
.envfile in the root of the project. -
Add the following variables:
PORT=5000 MONGO_DB_URI=<your MongoDB connection string> JWT_SECRET=<your secret key>
Replace
<your MongoDB connection string>and<your secret key>with your actual values. -
-
Install frontend dependencies:
cd frontend npm install -
Start the development server:
-
For the backend server, stay in the
text-wavedirectory and run:npm run server
-
For the frontend development server, navigate to the
frontenddirectory and run:npm run dev
-
-
Open your browser and navigate to http://localhost:3000 to view the frontend.
The backend will be running on http://localhost:5000.
For a detailed Project Structure, head to Project Structure.
This project is licensed under the MIT License.
