jxnata / btc-puzzle-backend

backend for a decentralized pool where users connect their wallets to solve bitcoin puzzles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BTC Puzzle Pool Backend

BTC Puzzle Pool Backend is the API responsible for managing the decentralized pool for solving BTC puzzles, authenticating users, and distributing rewards.

Technologies Used

  • Node.js
  • Express
  • TypeScript
  • Mongoose
  • JSON Web Tokens (JWT)
  • bitcoinjs-message

Requirements

  • Node.js v14 or higher
  • MongoDB

Installation

  1. Clone the repository:
git clone https://github.com/your-username/btc-prize-pool-backend.git
cd btc-prize-pool-backend
  1. Install the dependencies:
yarn install
  1. Configure the environment variables:

Rename the .env.example file to .env and add your settings like mongodb connection string and secret_key.

Available Scripts

yarn dev: Starts the server in development mode using ts-node-dev.

yarn build: Compiles the TypeScript project to JavaScript.

yarn start: Starts the server with the compiled code.

Contribution

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

backend for a decentralized pool where users connect their wallets to solve bitcoin puzzles


Languages

Language:TypeScript 99.2%Language:JavaScript 0.8%