https://github.com/boopi7/five-lucky
A simple betting game on Cardano blockchain
https://github.com/boopi7/five-lucky
html python shell
Last synced: about 16 hours ago
JSON representation
A simple betting game on Cardano blockchain
- Host: GitHub
- URL: https://github.com/boopi7/five-lucky
- Owner: Boopi7
- Created: 2025-11-02T09:34:33.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-02T09:34:33.000Z (8 months ago)
- Last Synced: 2026-02-17T20:51:45.102Z (5 months ago)
- Topics: html, python, shell
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lucky-five
A simple betting game on cardano blockchain
## Development
1. [Set up a local cardano node.](https://developers.cardano.org/docs/get-started/installing-cardano-node)
2. [Install PostgreSQL](https://www.digitalocean.com/community/tutorials/how-to-install-postgresql-on-ubuntu-20-04-quickstart) and create a dedicated user and database for development.
3. Create the policy directory that will be used to store
policy related files for minting ticket-nfts.
`mkdir -p $HOME/.luckyfive/policy`
4. Create the payment directory to store payment key-pair
used for the betting module.
`mkdir -p $HOME/.luckyfive/payment`
5. Clone the repository.
`git clone https://github.com/riidatibula/lucky-five.git`
6. Create a json config file.
`sudo touch /etc/luckyfive-config.json; sudo -e /etc/luckyfive-config.json`
Enter the your actual development configuration:
```
{
"DEBUG": true,
"SECRET_KEY": "xxxxxxxx-secret-key-xxxxxxxx",
"LUCKYFIVE_API_KEY": "xxxxxxxx-api-xxxxxxxx",
"ALLOWED_HOSTS": [],
"DB_NAME": "luckyfive",
"DB_USER": "luckyfivedb",
"DB_PASSWORD": "mystrongpassword",
"DB_HOST": "localhost",
"POLICY_DIR": "$HOME/.luckyfive/policy/",
"PAYMENT_SKEY": "$HOME/.luckyfive/payment/payment.skey",
"PAYMENT_VKEY": "$HOME/.luckyfive/payment/payment.vkey"
}
```
7. Create a virtual environment under the cloned project.
`cd ; python3 -m virtualenv .venv`
8. Activate virtualenv.
`source .venv/bin/active`
9. Install dependencies.
`pip -r install requirements.txt`