Galaxy is a loyalty platform where you can create campaign and reward your users with some prizes or t-shirts.
dApp: https://galaxy.gordian.dev/
Demo: https://www.loom.com/share/82370b69d46144b3809f162ba7edd1fe
Clone the repository and enter the Galaxy Dapp directory.
git clone /~https://github.com/zoek1/galaxy.git
tmux
cd galaxy/dapp
docker-compose build
sudo apt install redis certbot
source scripts/deploy_contract.sh
python -m venv .env
source .env/bin/activate
pip install -r server/requirements.txt
cp proxy/galaxy.conf /etc/nginx/sites-enabled
certbot -nginx
Screen 1
docker-compose up
Screen 2
cd server
flask run -p 8000
On your browser open http://galaxy.dev
Main storage endpoint
The server only store pointer to ipfs saved files:
- /~https://github.com/zoek1/galaxy/blob/master/server/models.py#L54
- /~https://github.com/zoek1/galaxy/blob/master/server/models.py#L68
Main function to retrieve IPFS files using web3.storage
Create Campaign - All metadata is stored in web3.storage using this function.
Create rewards for your users - Metadata and images are stored in web3.storage using this function function and this
Let the user take actions - Metadata is retrieved from web3.storage using this function.
Earn rewards - Image and reward data are retrieved from web3.storage using this function.
See LICENSE.