Key Features • How To Use • Repository • License
- Buy beer or pizza
- Products selected to showcase an age-restricted product.
- Social login for Token wallet
- Custody for your token wallet.
- Uses the PolygonID SDK and Stackup framework
The backend is located under ts-sc-proxy. The file consts.ts contains constants and configuration variables that are necessary for the backend to communicate with the different smart contracts as well as the flutter app and the webshop.
The webshop (frontend) is located under js-webshop. In order for the webshop to access your backend, you should provide the url at which it can be accessed. Please edit the config.json file under js-webshop in order to do so:
{
"verifier_address": "0xf463aefB5975e712059eAF56276a7dfe7D4B5542",
"smart_money_address": "0x46346F5Db118505707F17B6c1805D0a557bb3ADA",
"backend_url": "[BACKEND'S PUBLIC FACING URL]"
}
The easiest way to generate a public url is to set up an HTTP endpoint at port 3003 using ngrok (here); This endpoint will allow access to your localhost backend using a publicly url.
In the wallet application, there is a screen dedicated to configuring backend URL settings. Please input the public URL previously mentioned.
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/MKsKzWEPAST/AA-SSI
# Start with docker-compose
$ docker-compose upYou can clone the repository from here.
This software uses the following open source packages:
MIT
GitHub @Leautp · GitHub @Nazianzenov
