npwd-community / npwd_crypto

GNU General Public License v3.0
7 stars 10 forks source link
Material-UI logo

NPWD Crypto

External NPWD app for buying, selling and trading crypto currency.
[![license](https://img.shields.io/github/license/npwd-community/npwd_crypto?style=for-the-badge)](https://github.com/mojito-fivem/npwd-dispatch/master/LICENSE) ![GitHub all releases](https://img.shields.io/github/downloads/npwd-community/npwd_crypto/total?style=for-the-badge)

Screenshots

Portfolio Page History Page Transaction Page

Setup and Configuration

Framework is automatically detected for ESX and QBCore

Installation

ESX ONLY

Config

{
  "maxHistory": 10,  // Maximum number of data points to store in history
  "logging": {
    "enabled": false, // Enables discord webhook logging of crypto price updates
    "webhook": "" // Discord webhook link
  },
  "tick": {
    "min": 15, // Minimum value the crypto can take
    "max": 250, // Maximum value
    "upDownRatio": 0.6, // [1.0-0.0] chance for crypto to go up
    "maxDeviation": 10, // Maximum amount the price can go up or down
    "interval": 15, // Time in minutes for each price change
    "crashChance": 0.05 // Chance% for price to reset to minimum
  }
}

Development

If you wish to make changes or build yourself you can clone the repository with git clone https://github.com/npwd-community/npwd_crypto.git then install the dependencies with yarn build or npm i.

You can either build the project with yarn build or alternatively, you can use yarn watch to put webpack in watch mode so that it will automatically rebuild after any changes you make.