Skip to content

Commit

Permalink
add next multichain example
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomas committed Nov 14, 2024
1 parent 23db40f commit fda6af0
Show file tree
Hide file tree
Showing 20 changed files with 13,579 additions and 0 deletions.
1 change: 1 addition & 0 deletions dapps/appkit/next-multichain-app-router/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_PROJECT_ID=
3 changes: 3 additions & 0 deletions dapps/appkit/next-multichain-app-router/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
}
41 changes: 41 additions & 0 deletions dapps/appkit/next-multichain-app-router/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# env files (can opt-in for committing if needed)
.env
.env.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
16 changes: 16 additions & 0 deletions dapps/appkit/next-multichain-app-router/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Reown AppKit Example using wagmi+Solana (next.js with App Router)

This is a Next.js project.

## Usage

1. Go to [Reown Cloud](https://cloud.reown.com) and create a new project.
2. Copy your `Project ID`
3. Rename `.env.example` to `.env` and paste your `Project ID` as the value for `NEXT_PUBLIC_PROJECT_ID`
4. Run `pnpm install` to install dependencies
5. Run `pnpm run dev` to start the development server

## Resources

- [Reown — Docs](https://docs.reown.com)
- [Next.js — Docs](https://nextjs.org/docs)
7 changes: 7 additions & 0 deletions dapps/appkit/next-multichain-app-router/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
31 changes: 31 additions & 0 deletions dapps/appkit/next-multichain-app-router/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "next-wagmi-app-router",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@reown/appkit": "^1.3.2",
"@reown/appkit-adapter-solana": "^1.3.2",
"@reown/appkit-adapter-wagmi": "^1.3.2",
"@solana/wallet-adapter-wallets": "^0.19.32",
"@tanstack/react-query": "^5.59.20",
"next": "15.0.3",
"react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106",
"viem": "^2.21.44",
"wagmi": "^2.12.31"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "15.0.3",
"typescript": "^5"
}
}
Loading

0 comments on commit fda6af0

Please sign in to comment.