Seventh assignment for the Solana Summer Fellowship 2024.
Build an app that captures an image through the camera, mints an NFT with that image, and adds the current location longitude, latitude in the metadata.
The app relies on Supabase storage to store the NFT's image and metadata. Create a project on Supabase and make sure to set the storage bucket to be publicly accessible and make a .env
file based on the template provided.
To build the app first install the dependencies.
yarn
The postinstall
script that fixes metaplex packages should run after the dependencies have been installed.
If the script doesnt run, you can run it manually using the following command:
yarn fix
Run the following command to build the development environment .apk
file.
yarn build:dev
After the .apk
file has been built drag it into your emulator in android studio.
Then start a development server using the following command:
yarn android
Run the following command to build the preview environment .apk
file.
yarn build:preview
This .apk
file does not require a development server and can be installed on your phone.
The user first needs to connect their wallet app.
After the wallet has been connected, a new screen called NFT
will be avalable.
The user then has the option to take a photo with their camera or load an image from their gallery.
After an image has been selected the user can mint an NFT with the image and their current location.
Video demo of the app can be found here.
The NFT minted in the video can be found here.