This document provides detailed instructions on how to install and run Pagu for development purposes.
Ensure you have the following installed on your system before proceeding:
- Go: Pagu is developed using the Go programming language. You can find installation instructions here.
- MySQL: Pagu uses MySQL as its primary database. Download and install MySQL from here.
Follow the steps below to install and configure Pagu on your local machine.
First, clone the Pagu repository to your local machine:
git clone https://github.com/pagu-project/Pagu.git
cd Pagu
Install the necessary development tools by running the following commands:
make devtools
cp ./config/config-sample.yml ./config/config.yml
Modify config.yml
with the appropriate values for your setup.
To run local nodes and configure them in your config.yml
, refer to the Pactus Daemon documentation.
Pagu requires a Pactus wallet to manage transactions. If you don’t have a wallet, follow the instructions to create one here.
If you plan to run Pagu in a Discord server, you will need a Guild ID and a Discord application token. You can obtain these by following the Discord Developer Guide.
Once the installation and configuration are complete, you can run Pagu using the following commands.
Run the Discord engine using:
make check
go run ./cmd/discord -c ./config/config.main.yml run
We welcome contributions to Pagu! Please follow the steps below to get started:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a Pull Request.