Giter Site home page Giter Site logo

prowebdever / holaplex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from holaplex/holaplex

3.0 0.0 3.0 38.52 MB

Find, buy, and sell NFTs from incredible creators on Solana.

Home Page: https://holaplex.com

License: GNU Affero General Public License v3.0

Shell 0.58% TypeScript 95.07% JavaScript 1.05% HTML 0.56% Less 2.74%

holaplex's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

PORT=3001 yarn dev

Replace 3001 with an available port on your machine for this and any of the following examples.

Open http://localhost:3001 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3001/api/hello. This endpoint can be edited in pages/api/hello.tsx.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

A local database can be booted within a docker container using docker-compose. Run the following commands to start a database, load schema, and seed with demo storefront.

docker-compose up -d
yarn db:migrate
yarn db:seed

A local instance of Arweave can be booted with the following command. It will bind to port 1984. A GraphQL explore is available at http://localhost:1984/graphql.

npx @textury/arlocal

To configure the server to use arlocal, add the following to .env.local:

NEXT_PUBLIC_ARWEAVE_HOST=localhost
NEXT_PUBLIC_ARWEAVE_PORT=1984
NEXT_PUBLIC_ARWEAVE_PROTOCOL=http
# mainnet
NEXT_PUBLIC_SOLANA_ENDPOINT="https://holaplex.rpcpool.com/"
# devnet (comment out when you want to use real solana)
NEXT_PUBLIC_SOLANA_ENDPOINT="http://api.devnet.solana.com"

NFT_STORAGE_API_KEY="" # got to https://nft.storage and create an account, and get an API key.

Run the db seed command to populate the database with your Solana wallet public key.

SOLANA_PUBKEY=${SOLANA_PUBKEY} yarn run db:seed

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

holaplex's People

Contributors

damianr avatar dandlezzz avatar davetorbeck avatar kespinola avatar kristianeboe avatar mahmoud-elgammal avatar ray-kast avatar sjc5 avatar

Stargazers

 avatar  avatar  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.