NablaPoker is an open-source poker platform currently under development.
- Game Platform: Create and join poker games
- Replayer: Replay previous hands
- Statistics: Display the user and opponents statistics
Before you begin, ensure you have met the following requirements:
- Python 3: The project is built using Python 3.
- pip: Python package installer for managing project dependencies.
- Systemd: For managing the application as a service (optional).
To set up NablaPoker, follow these steps:
-
Clone the Repository
git clone https://github.com/Andres-Briones/NablaPoker.git cd NablaPoker
-
Make the Script Executable
chmod +x install.sh
-
Run the Installation Script
./install.sh
The
install.sh
script will:- Check for Python 3 and
venv
availability. - Create a Python virtual environment and install dependencies from
requirements.txt
. - Generate a run script (
run-nablapoker.sh
) for launching the application. - Optionally set up a user-level systemd service if the user agrees and systemd is available.
- Check for Python 3 and
After installation, you can start the application in one of the following ways:
Execute the generated run script to start the app:
./run-nablapoker.sh
If you set up the systemd service during installation, use the following commands:
-
Start the service:
systemctl --user start nablapoker
-
Check the service status:
systemctl --user status nablapoker
-
View logs (if
journald
is used):journalctl --user -u nablapoker
-
Enable the service to start automatically upon login:
systemctl --user enable nablapoker
To uninstall NablaPoker and clean up the system, use the uninstall.sh
script:
-
Make the Uninstall Script Executable
chmod +x uninstall.sh
-
Run the Uninstall Script
./uninstall.sh
The
uninstall.sh
script will:- Stop and disable the systemd service (if it exists).
- Remove the systemd service file.
-
Confirmation The application has been unregistered as a service. The virtual environment and source files remain intact for potential reinstallation or manual management.
If you wish to completely remove the application, delete the project directory manually:
rm -rf /path/to/nablapoker
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
This project is licensed under the GPL-3.0 License. See the LICENSE file for more details.
If you encounter any issues during installation or have questions, feel free to open an issue or contact the maintainer.