https://github.com/dmgitpos/realtime-frex-mern
A real-time collaborative workspace application for forex trading, built with the MERN stack (MongoDB, Express.js, React.js, Node.js) and Socket.io. The project aims to provide a secure and feature-rich platform for forex traders to collaborate, communicate, and access live forex price updates.
https://github.com/dmgitpos/realtime-frex-mern
express forex-prediction jwt mongodb node react
Last synced: 3 months ago
JSON representation
A real-time collaborative workspace application for forex trading, built with the MERN stack (MongoDB, Express.js, React.js, Node.js) and Socket.io. The project aims to provide a secure and feature-rich platform for forex traders to collaborate, communicate, and access live forex price updates.
- Host: GitHub
- URL: https://github.com/dmgitpos/realtime-frex-mern
- Owner: DMGitPOS
- License: mit
- Created: 2025-02-11T14:01:34.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-02-11T14:02:27.000Z (8 months ago)
- Last Synced: 2025-06-08T07:44:02.359Z (4 months ago)
- Topics: express, forex-prediction, jwt, mongodb, node, react
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Real-time-Forex-MERN
A real-time collaborative workspace application for forex trading, built with the MERN stack and Socket.io.## Features
- 🔐 JWT-based Authentication
- 💬 Real-time Chat Channels
- 📊 Live Forex Price Updates
- 👥 Role-based Access Control
- 🔔 Real-time Notifications
- 📱 Responsive Design## Tech Stack
- **Frontend**: React.js
- **Backend**: Node.js, Express.js
- **Database**: MongoDB
- **Real-time Communication**: Socket.io
- **Authentication**: JWT## Getting Started
### Prerequisites
- Node.js (v14 or higher)
- MongoDB
- npm or yarn### Installation
1. Clone the repository:
```bash
git clone https://github.com/BTC415/Real-time-Forex-MERN.git
cd Real-time-Forex-MERN
```2. Install dependencies:
```
cd server && npm install
cd ../src && npm install
```3. Set up environment variables:
```
VITE_API_URL=http://localhost:3001/
VITE_CLIENT_URL=http://localhost:5173/
MONGODB_URI=
JWT_SECRET=your_jwt_secret_key
PORT=3001
```### Running the Application
1. Start the backend server:
```
cd server && npm start
```2. Start the frontend development server:
```
cd src && npm run dev
```### API Endpoints
#### Authentication
- **POST** `/api/auth/register` - Register new user
- **POST** `/api/auth/login` - User login
- **GET** `/api/auth/validate` - Validate JWT token
- **PUT** `/api/auth/update` - Update user profile#### User Roles
- Admin: Full access, can manage channels
- Trader: Access to trading channels and chat
- Guest: Limited access to public channels#### Available Currency Pairs
- EUR/USD
- GBP/USD
- USD/JPY
- USD/CHF#### Security Features
- Password hashing with bcrypt
- JWT token authentication
- Role-based access control
- Secure API endpoints## Contributing
- Fork the repository
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request## License
This project is licensed under the [LICENSE](https://github.com/BTC415/Real-time-Forex-MERN/blob/master/LICENSE) - see the LICENSE file for details.