non-fungible-apps/ui
Camila Sosa Morales f685d6800b
feat: UI responsiveness on mint and AP flow (#245)
* wip: make mint flow responsive

* feat: add responsivness

* feat: add button connection

* refactor: remove iconSpacing from button for responsiveness

* styles: text ellipsis variation

* style: ellipsis on combobox
2023-04-28 12:16:24 -03:00
..
graphql feat: UI indexed nfa view (#230) 2023-04-20 14:19:53 -03:00
src feat: UI responsiveness on mint and AP flow (#245) 2023-04-28 12:16:24 -03:00
.eslintrc.js chore: UI clean up console logs (#175) 2023-03-13 12:52:04 -05:00
.gitignore chore: UI setup subgraph querying (#152) 2023-03-08 15:28:16 -05:00
.graphclientrc.yml chore: update graph url (#215) 2023-04-10 18:38:01 -03:00
.prettierrc feat: boilerplate for UI (#14) 2022-12-01 10:25:30 -03:00
README.md chore: update config and commands to deploy to goerli (#195) 2023-04-10 11:33:47 -04:00
fleek.json feat: CI/CD xyz (#206) 2023-04-12 13:48:55 -03:00
index.html feat: UI work on navbar responsivity (#244) 2023-04-26 16:31:39 -03:00
package.json chore: update config and commands to deploy to goerli (#195) 2023-04-10 11:33:47 -04:00
postcss.config.js chore: fix eslint ui errors (#201) 2023-04-03 17:02:32 -03:00
tailwind.config.js feat: UI create explore view skeleton (#197) 2023-03-31 12:33:30 -03:00
tsconfig.json chore: fix eslint ui errors (#201) 2023-04-03 17:02:32 -03:00
vite.config.ts chore: fix eslint ui errors (#201) 2023-04-03 17:02:32 -03:00
yarn.lock fix: UI graphql quries (#205) 2023-04-04 15:24:43 -03:00

README.md

Overview

Minimal UI to interact with the contract, build with React. It will allow you to:

  • Mint your site
  • List the minted sites
  • View the details of the minted site

⚙️ Requirements

You'll need to have nodejs and YARN installed. Please do not use NPM for package installation.

Also, don't forget to check the Getting started section on the wiki if you didn't do it yet, cause you need to configure your wallet to be able to mint a site.

Setting Contract Address and ABI

The contract address and ABI is set by pointing ui/src/integrations/ethereum/contracts/FleekERC721.json to the file from the deployment outputs in the contract sub project.

This can be a local deployment or a deployment on one of the networks. This maintains consistency between the deployed contracts and the info in the UI configuration.

🖥️ Running

To run the UI localy follow the steps:

  1. Clone the repo, check out how here.

  2. Install the dependencies:

    $ yarn
    

    This also will generate the .graphclient folder. Every time you do a change on the queries files, you'll have to build again that folder, to do it run:

    $ yarn graphclient build
    
  3. To use ConnecKit is neccessary get an Alchemy ID, so create an App and get the credentials. Then set the following .env file

    VITE_ALCHEMY_API_KEY
    VITE_ALCHEMY_APP_NAME
    

    Also, you'll need to set up your firebase cretendials to make work the github login. Add to the .env file the following variables

    VITE_FIREBASE_API_KEY
    VITE_FIREBASE_AUTH_DOMAIN
    VITE_FIREBASE_PROJECT_ID
    VITE_FIREBASE_STORAGE_BUCKET
    VITE_FIREBASE_MESSAGING_SENDER_ID
    VITE_FIREBASE_APP_ID
    VITE_FIREBASE_MEASUREMENT_ID
    

Get them from the project settings on the firebase dashboard. Read this article to know how to get your porject config

  1. To interact with the contract, you need to set the Goerli RPC. Set this variable on the .env file

    VITE_GOERLI_RPC
    
  2. Start the local server running the app:

    $ yarn dev
    

    Now a local server should be running on http://localhost:5173.

🤖 Build public

As we use vite, to build a public distribution for production run:

$ vite build

This will create a dist folder for the deployment.