Skip to content

Repository files navigation

LLG Chess Game

This is a chess game project developed by [Your Name].

Installation

  1. Clone the repository: git clone https://github.com/your-username/llgchessgame.git
  2. Navigate to the project directory: cd llgchessgame
  3. Install the dependencies: npm install

mongoDB

To set up MongoDB on your Mac, you need to install MongoDB Community Edition. Here are the steps:

  1. Open Terminal.
  2. 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)"
  1. Update Homebrew to ensure you have the latest version of the formulae:
brew update
  1. Install MongoDB Community Edition with Homebrew:
brew tap mongodb/brew
brew install mongodb-community
  1. 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.

  1. To stop MongoDB, you can use the following command in your terminal:
brew services stop mongodb-community

.env

  1. rename sample.env to .env
  2. change YOUR_PRIVATE_KEY and add your private key
  3. change ACCOUNT and add the account you want to see the balance

Usage

  1. Start the game: npm start
  2. Follow the on-screen instructions to play the game.

Testing

Balance

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

Total Supply

run curl -X GET "http://localhost:8050/play/llg-total-supply" from the console and it will give the total supply

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages