This is a part of the DeepWaifu project.
This repository holds the UI code for the project.
The live version of the dapp can be found here.
This project consists of the following repositories:
- https://github.com/chronologic/deep-waifu-ui (this repository)
- https://github.com/chronologic/deep-waifu-server
- https://github.com/chronologic/deep-waifu-payment-contract
- https://github.com/chronologic/deep-waifu-model
This repo uses dotenv
to load environment variables.
For development, an .env
file should be created based on the .env.example
template file. The .env
file should never be commited.
In production, environment variables can be injected directly.
Below is a list of possible environment variables.
Name | Type | Default | Description |
---|---|---|---|
REACT_APP_API_URL |
string |
URL to DeepWaifu Server | |
REACT_APP_SHARE_URL |
string |
Base URL for sharing minted waifus on social media. The share URL is a static website with OG data . The website is served by DeepWaifu Server so this may be set to the same value as REACT_APP_API_URL but we exposed the Server at another (nicer) URL for the purpose of social media sharing. |
|
REACT_APP_SOLANA_ENV |
string |
Solana network the server should connect to (devnet /testnet /...) |
|
REACT_APP_PAYMENT_PROGRAM_ID |
string |
Public key of DeepWaifu Payment Contract | |
REACT_APP_PAYMENT_TOKEN_MINT |
string |
Mint address of an SPL Token that can be used as alternative form of payment for minting the NFT. | |
REACT_APP_STRIPE_PUBLIC_KEY |
string |
Public API key for Stripe payment service. This is used in the pillow purchase flow. | |
REACT_APP_PILLOW_PRICE_USD |
number |
The price of the pillow in USD. |
Run npm install
Run npm run build
Run npm start