Skip to content

zoek1/galaxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Galaxy - Campaigns & Rewards

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

Setup

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

Run

Screen 1
docker-compose up
Screen 2
cd server
flask run -p 8000

On your browser open http://galaxy.dev

Where IPFS is used?

Main storage endpoint

The server only store pointer to ipfs saved files:

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.

License

See LICENSE.