This is a chess game project developed by [Your Name].
- Clone the repository:
git clone https://github.com/your-username/llgchessgame.git - Navigate to the project directory:
cd llgchessgame - Install the dependencies:
npm install
To set up MongoDB on your Mac, you need to install MongoDB Community Edition. Here are the steps:
- Open Terminal.
- Install Homebrew if you haven't already. Homebrew is a package manager for macOS that simplifies the installation of software. You can install it with the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Update Homebrew to ensure you have the latest version of the formulae:
brew update
- Install MongoDB Community Edition with Homebrew:
brew tap mongodb/brew
brew install mongodb-community
- To run MongoDB (i.e., the MongoDB daemon), use the mongod command:
brew services start mongodb-community
Now, MongoDB is installed and running, and you can interact with it using the MongoDB shell, mongo.
- To stop MongoDB, you can use the following command in your terminal:
brew services stop mongodb-community
- rename
sample.envto.env - change
YOUR_PRIVATE_KEYand add your private key - change
ACCOUNTand add the account you want to see the balance
- Start the game:
npm start - Follow the on-screen instructions to play the game.
run curl -X GET "http://localhost:8050/play/llg-balance" from the console and it will give the balance of the account set in the ACCOUNT variable in the .env file
run curl -X GET "http://localhost:8050/play/llg-total-supply" from the console and it will give the total supply