This example sets up a new React app with Metaplex using Next.js.
This example has been generated using the following steps:
-
Create a new project using Next.js.
npx create-next-app@latest getting-started-nextjs cd getting-started-nextjs
-
Install the Metaplex and the Solana SDKs.
yarn add @metaplex-foundation/js @solana/web3.js
-
That's it! 🎉
You're now ready to start building your app. You can use the following commands to build and serve your app.
# Build and serve for development. yarn dev # Build and serve for production. yarn build && yarn start
If you're interested in how this example app is using the Metaplex SDK, check out the
index.js
andHome.module.css
files in thepages
andstyles
directories.
Looking for the README file autogenerated by Next.js? It's been moved here.