Welcome to the ChessClub app! This project is divided into three separate repositories that work together to provide a complete chess experience:
- chess-club-frontend: The frontend of the application built with React. chess-club-backend: The Node.js server that handles backend logic. chess-club-backend-websocket: The WebSocket server for real-time communication.
To get the project up and running on your local machine, follow these steps:
-
Fork and Clone Repositories
-
Fork the following repositories to your GitHub account:
- frontend
- backend
- websocket
-
Clone the repositories to your local machine:
https://github.com/Rahul-sehrawat/chess-club-frontend https://github.com/Rahul-sehrawat/chess-club-backend https://github.com/Rahul-sehrawat/chess-club-backend-websocket
-
-
Set Up the Backend Server
- Navigate to the chess-club directory:
cd chess-club-backend
- Install dependencies:
npm install
-
Configure environment variables (e.g., database connection) as needed. Refer to the .env.example file for configuration details.
-
Start the backend server:
npm start
-
Set Up the WebSocket Server
- Navigate to the chess-club-websocket directory:
cd chess-club-websocket
- Install dependencies:
npm install
- Start the WebSocket server:
npm start
-
Set Up the Frontend
- Navigate to the chess-club-frontend directory:
cd chess-club-frontend
- Install dependencies:
npm install
-
Configure environment variables (e.g., API endpoints) in the .env file. Refer to the .env.example file for details.
-
Start the frontend development server:
npm run dev
-
Access the Application
- Frontend: Open your browser and navigate to http://localhost:5173 to access the frontend application.
- Backend API: The backend server will be running at http://localhost:4000 (or the port specified in your .env file).
- WebSocket Server: The WebSocket server will be running at ws://localhost:8080 (or the port specified in your .env file).
If you'd like to contribute to the project, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or issues, please open an issue on the respective repository or contact me directly.