https://github.com/omega000133/con-eth
This project developed to authenticate with wallet, list transactions and more in ETH chain.
https://github.com/omega000133/con-eth
context-api husky i18n mongodb moralis nextjs tailwindcss typescript web3-dapp
Last synced: 3 months ago
JSON representation
This project developed to authenticate with wallet, list transactions and more in ETH chain.
- Host: GitHub
- URL: https://github.com/omega000133/con-eth
- Owner: omega000133
- License: cc0-1.0
- Created: 2024-04-02T18:02:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T18:04:26.000Z (about 1 year ago)
- Last Synced: 2025-01-26T18:36:02.050Z (5 months ago)
- Topics: context-api, husky, i18n, mongodb, moralis, nextjs, tailwindcss, typescript, web3-dapp
- Language: TypeScript
- Homepage: https://nextjs-dapp-example.vercel.app/
- Size: 252 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConnEth
## Technology Stack
- [Yarn](https://yarnpkg.com)
- [NextJS](https://nextjs.org)
- [TypeScript](https://www.typescriptlang.org)
- [Prisma](https://www.prisma.io/)
- [Moralis](https://moralis.io)
- [Web3 Authentication via Metamask](https://metamask.io)
- [tailwindcss](https://tailwindcss.com)
- [Husky](https://github.com/typicode/husky)
- [Lint-staged](https://github.com/okonet/lint-staged)
- [i18n Routing](https://nextjs.org/docs/advanced-features/i18n-routing)
- [headlessUI](https://headlessui.dev)
- [heroicons](https://heroicons.com)## Notes
If the husky hooks do not work, delete files found under the `.husky` folder and run these commands:
```sh
yarn husky add .husky/pre-commit
yarn husky add .husky/commit-msg
```Fill the created files as follow:
### pre-commit
Basically, it will do linting on staged files.
```bash
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"yarn lint-staged
```### commit-msg
This will force developer to use [semantic commits](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716).
```bash
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"undefined
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"#!/bin/sh
if ! head -1 "$1" | grep -qE "^(feat|fix|chore|docs|test|style|refactor|perf|build|ci|revert)(\(.+?\))?: .{1,}$"; then
echo "Aborting commit. Your commit message is invalid." >&2
exit 1
fi
if ! head -1 "$1" | grep -qE "^.{1,88}$"; then
echo "Aborting commit. Your commit message is too long." >&2
exit 1
fi
```## Installation
```bash
git clone [email protected]:damla/connEth.gitcd connEth
# Install node packages
yarn# Note: Environment variables need to be added
# before running# generate prisma client according to schema directives
npx prisma generate --schema=./src/lib/prisma/schema.prisma# create initial migration
npx prisma db push# seed data according to seed.ts
npx prisma db seed# Run
yarn dev
```