Getting Started
This guide will help you get RushChat up and running in 5 minutes.
Getting Started Overview
Prerequisites
- Node.js ≥ 18
- Rust ≥ 1.70
- MySQL ≥ 5.7 or MariaDB ≥ 10.3
- Git
Installation Steps
1. Clone Project
2. Install Dependencies
# Install root directory dependencies
npm install
# Install client dependencies
cd client && npm install && cd ..
3. Database Setup
Create Database
Or execute manually:
Configure Database Connection
Create a .env file in the project root directory:
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=your_password
DB_NAME=rushchat
PORT=5001
NODE_ENV=development
CLIENT_URL=http://localhost:3000
REACT_APP_SOCKET_URL=http://localhost:5001
💡 Tip: You can copy
docs/ENVIRONMENT_TEMPLATE.mdas a template
4. Start Application
Start Backend (Rust)
The backend server will run at: http://localhost:5001
Start Frontend (React)
Open a new terminal window:
The React development server will run at: http://localhost:3000
5. Access Application
Open your browser and visit: http://localhost:3000
Verify Installation
Check Backend
Visit http://localhost:5001/api/health (if health check endpoint is configured)
Check Frontend
- Page loads normally
- Chat interface is visible
- Can enter as guest
Next Steps
- 📖 Read User Guide to learn how to use
- 🔧 Check Configuration for detailed configuration
- 🚀 Check Deployment Guide to deploy to production
Common Issues
Database Connection Failed
- Ensure MySQL is running
- Check database credentials in
.envfile - Verify database exists:
mysql -u root -p -e "SHOW DATABASES;"
Port Already in Use
- Change
PORTin.envfile - Update
REACT_APP_SOCKET_URLin client
CORS Error
- Check backend
CLIENT_URLenvironment variable - Ensure frontend address includes protocol (
http://orhttps://)
Need Help?
- 📖 Check FAQ
- 🔍 Check Troubleshooting
- 📝 Check Full Documentation