Integrating a virtual pet breeding gameplay with a cashback app to create a mixed reality interaction model and a shopping experience that sns from web2 to web3.
To install and run Next.js Chrome Extension locally, follow these steps:
- Clone this repository:
git clone https://github.com/futianshen/sol-pet-legends.git
- Navigate to project directory:
cd sol-pet-legends
- Install the dependencies using yarn:
yarn
Run the project:
yarn dev
This will run project on your localhost
To build and import Next.js Chrome Extension to chrome browser, follow these steps:
- rename the images in the following way:
import phantom from "@/public/images/phantom.png"
<img src={phantom.src} alt="phantom" />
to
import phantom from "@/public/images/phantom.png"
<img src={phantom.src.replace("_next", "next")} alt="phantom" />
-
Build the project:
This will run prep and export to create new folder 'out/', and rename '_next' folder to 'next' (without underscore)
yarn build
-
Open Google Chrome and go to chrome://extensions.
-
Enable the "Developer mode" toggle switch.
-
Click on "Load uncked" and select the out folder generated by the build process.
-
The Next.js Chrome Extension Starter should now be loaded as an uncked extension in Google Chrome.