Code Monkey home page Code Monkey logo

public-solana-starter's Introduction

Next Ethereum

Hey Newbie ๐Ÿ‘‹

Open this in preview mode for the best experience


Intro:

We are going to clone a simple web app of nfts using Next and our Solana widget.

Check out the Next documents here and follow the open-source documentation to create and deploy your site along with the documentation we have provided.


Clone


  1. Go to your desktop and create a folder where you want your project to live. Open a new terminal, GitBash Here, or cmd.

  2. Clone the repository:

  3. git clone gitRepo
    
  4. You should also install all the dependencies

  5. npm install or yarn install
    

How do you run your site locally?

  1. In the command line, cd into the directory that you created.

    Ex.


    cd my-next-app
    
  2. Run the command:

  3. yarn dev
    

    or

    npm run dev
    
  4. Go to your browser of choice and enter http:/localhost:8000 Or click here

Create .env file in the root of the project:

Create a file in the root of the project .env and put the following code:

NEXT_PUBLIC_REACT_APP_WALLET_ADDRESS=YourDefaultAddresHere //this is the default address with NFTs you want to see as a gallery
NEXT_PUBLIC_REACT_APP_USE_WALLET_ADDRESS=true //true if you want to use a wallet addres, false if you want to use a Json object
NEXT_PUBLIC_REACT_APP_API_KEY= yourApikey

Restart your app and run


npm run dev

Refresh your page and you will need to log into your Solana wallet.


And then you have the Darkblock Solana Widget working!!! ๐Ÿ˜‰ Congrats.


Please join us in Discord here for any bugs or extra information.

public-solana-starter's People

Contributors

gstrader28 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.