Welcome to CORE RUSH, a Web3-based tournament gaming platform! Follow these steps to set up the project on your local machine.
PLEASE NOTE: The backend code in this repository is provided for reference purposes only. The game's GDScript is hardcoded to interact with our hosted backend URL on Render. For convenience and proper functionality, it's advised not to run the backend locally with the game. This approach ensures the game works correctly out of the box without additional configuration.
Before you begin, make sure you have the following installed:
- Node.js (v21.5.0 or later) - Download Here
- MongoDB - We are using mongo atlas for this project which is of owner for the testing.
- MetaMask Wallet - Install MetaMask
- Pinata IPFS Account - Sign Up
- Core Testnet Wallet - Get Testnet CORE
- Git (optional but recommended) - Install Git
git clone https://github.com/your-repo/core-rush.git
cd core-rush# Create an environment file from the sample
cp .env.sample .envEdit the .env file and update the variables as needed. The backend hosted URL is:
https://core-rush.onrender.com
- Visit Chainlist.org
- Search for "Core" or "Core Blockchain"
- Connect your MetaMask wallet
- Click "Add to MetaMask" for either Core Mainnet or Core Testnet depending on your deployment needs
- Confirm the network addition in your MetaMask popup
- Navigate to the contracts directory:
cd smart-contracts/contracts-
Deploy the contracts to Core Testnet/Mainnet using either:
- Remix IDE: Upload the contracts to Remix and deploy using MetaMask connected to Core network
- Foundry Commands:
forge create --rpc-url <CORE_RPC_URL> --private-key <YOUR_PRIVATE_KEY> <CONTRACT_NAME>
-
Make note of the deployed contract addresses for frontend configuration.
- Return to the project root directory (if you're in the contracts folder):
cd ../..- Install dependencies and start the development server:
npm install
npm run devOpen your browser and navigate to:
http://localhost:3000
This will load the home page of the CORE RUSH gaming platform. Connect your Core wallet to start playing!