Skip to content

Commit

Permalink
feat: add next.js app (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbulma authored Oct 24, 2023
1 parent 41a9dac commit dbf059d
Show file tree
Hide file tree
Showing 34 changed files with 5,596 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,50 @@ docs/

# Dotenv file
.env

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies

node_modules
.pnp
.pnp.js

# testing

coverage

# next.js

.next/
out/

# production

build

# misc

.DS_Store
*.pem

# debug

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

# local env files

.env
.env\*.local

# vercel

.vercel

# typescript

*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions front/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_ALCHEMY_API_KEY=
3 changes: 3 additions & 0 deletions front/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
1 change: 1 addition & 0 deletions front/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
strict-peer-dependencies = false
17 changes: 17 additions & 0 deletions front/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
This is a [wagmi](https://wagmi.sh) + [RainbowKit](https://rainbowkit.com) + [Next.js](https://nextjs.org) project bootstrapped with [`create-wagmi`](https://github.com/wagmi-dev/wagmi/tree/main/packages/create-wagmi)

# Getting Started

Run `npm run dev` in your terminal, and then open [localhost:3000](http://localhost:3000) in your browser.

Once the webpage has loaded, changes made to files inside the `src/` directory (e.g. `src/pages/index.tsx`) will automatically update the webpage.

# Learn more

To learn more about [Next.js](https://nextjs.org) or [wagmi](https://wagmi.sh), check out the following resources:

- [wagmi Documentation](https://wagmi.sh) – learn about wagmi Hooks and API.
- [wagmi Examples](https://wagmi.sh/examples/connect-wallet) – a suite of simple examples using wagmi.
- [RainbowKit Documentation](https://rainbowkit.com/docs/introduction) – learn more about RainbowKit (configuration, theming, advanced usage, etc).
- [Next.js Documentation](https://nextjs.org/docs) learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
8 changes: 8 additions & 0 deletions front/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
webpack: (config) => {
config.resolve.fallback = { fs: false, net: false, tls: false }
return config
},
}
27 changes: 27 additions & 0 deletions front/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "front",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@rainbow-me/rainbowkit": "^1.0.0",
"next": "^13.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "~0.3.36",
"wagmi": "^1.0.6"
},
"devDependencies": {
"@types/node": "^17.0.31",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"eslint": "^8.15.0",
"eslint-config-next": "^12.1.6",
"typescript": "^5.0.4"
}
}
Loading

0 comments on commit dbf059d

Please sign in to comment.