Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/max-tonny8/ethereum-boilplate
Fully Typescript ready NextJS components for fast building dApps without running own backend
https://github.com/max-tonny8/ethereum-boilplate
ethereume metamask nextjs react-router-dom web3js yarn
Last synced: about 1 month ago
JSON representation
Fully Typescript ready NextJS components for fast building dApps without running own backend
- Host: GitHub
- URL: https://github.com/max-tonny8/ethereum-boilplate
- Owner: max-tonny8
- License: mit
- Created: 2024-05-14T20:26:55.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T17:23:32.000Z (about 2 months ago)
- Last Synced: 2024-09-30T16:31:09.684Z (about 2 months ago)
- Topics: ethereume, metamask, nextjs, react-router-dom, web3js, yarn
- Language: TypeScript
- Homepage:
- Size: 802 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `ethereum-boilerplate`
> Fully Typescript ready NextJS components for fast building dApps without running own backend
πDEMO: https://eth-boilerplate.vercel.app/
This boilerplate is built with [Moralis](https://moralis.io?utm_source=github&utm_medium=readme&utm_campaign=ethereum-boilerplate)
You need active web3 provider/wallet only for authentication. All pages in this boilerplate do not require an active web3 provider, they use Moralis Web3 API. Moralis supports the most popular blockchains and their test networks. You can find a list of all available networks in [Moralis Supported Chains](https://docs.moralis.io/reference/supported-chains-nft)
Please check the [official documentation of Moralis](https://docs.moralis.io/) for all the functionalities of Moralis.
![eth-boilerplate](https://user-images.githubusercontent.com/78314301/186810447-fa66cd80-5bbb-4e41-b29f-862c8cc67d43.gif)
# βοΈ `Star us`
If this boilerplate helps you build Ethereum dapps faster - please star this project, every star makes us very happy!
# π€ `Need help?`
If you need help with setting up the boilerplate or have other questions - don't hesitate to write in our community forum and we will check asap. [Forum link](https://forum.moralis.io/t/ethereum-boilerplate-questions/3951/86). The best thing about this boilerplate is the super active community ready to help at any time! We help each other.
# π `Quick Start`
π Clone or fork `ethereum-boilerplate`:
```sh
git clone https://github.com/ethereum-boilerplate/ethereum-boilerplate.git
```πΏ Install all dependencies:
```sh
cd ethereum-boilerplate
yarn install
```β Rename `.env.local.example` to `.env.local` and provide required data. Get your Web3 Api Key from the [Moralis dashboard](https://admin.moralis.io/):
![image](https://user-images.githubusercontent.com/78314301/186810270-7c365d43-ebb8-4546-a383-32983fbacef9.png)
ποΈ Fill the environment variables in your .env.local file in the app root:
- `MORALIS_API_KEY`: You can get it [here](https://admin.moralis.io/web3apis).
- `NEXTAUTH_URL`: Your app address. In the development stage, use http://localhost:3000.
- `NEXTAUTH_SECRET`: Used for encrypting JWT tokens of users. You can put any value here or generate it on https://generate-secret.now.sh/32.Example:
```
MORALIS_API_KEY=xxxx
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=7197b3e8dbee5ea6274cab37245eec212
```π΄ββοΈ Run your App:
```sh
yarn start
```# π§ `Table of contents`
- [`ethereum-boilerplate`](#ethereum-boilerplate)
- [π Quick Start](#-quick-start)
- [π§ Table of contents](#-table-of-contents)
- [π Ethereum Components](#-ethereum-components)
- [``](#nftbalances-)
- [``](#erc20balances-)
- [``](#erc20transfers-)
- [``](#nfttransfers-)
- [``](#transactions-)
- [β¨ Contributors](#-contributors)# π Ethereum Components
### ``
![image](https://user-images.githubusercontent.com/78314301/186813114-2b2265a5-5177-4ab8-9076-588107d450f1.png)
location: `src/component/templates/balances/NFT/NFTBalances.tsx`
π¨ `` : displays the user's balances. Uses Moralis Evm API (does not require an active web3 provider).
### ``
![image](https://user-images.githubusercontent.com/78314301/186813448-a0b63106-bcba-46d2-be80-3a7d962e2302.png)
location: `src/component/templates/balances/ERC20/ERC20Balances.tsx`
π° `` : displays the user's ERC20 balances. Uses Moralis Evm API (does not require an active web3 provider).
### ``
![image](https://user-images.githubusercontent.com/78314301/186813957-69badb89-bf93-44e6-90e7-c35801c24d9a.png)
location: `src/component/templates/transfers/ERC20/ERC20Transfers.tsx`
π° `` : displays the user's ERC20 transfers. Uses Moralis Evm API (does not require an active web3 provider).
### ``
![image](https://user-images.githubusercontent.com/78314301/186814187-916851d7-703d-4e30-9b28-b66b0bea90b1.png)
location: `src/component/templates/transfers/NFT/NFTTransfers.tsx`
π¨ `` : displays the user's NFT transfers. Uses Moralis Evm API (does not require an active web3 provider).
### ``
![image](https://user-images.githubusercontent.com/78314301/186812987-74d8e534-5171-4a53-83f9-3b470bc97e63.png)
location: `src/component/templates/transactions/Transactions.tsx`
π° `` : displays the user's transactions. Uses Moralis Evm API (does not require an active web3 provider).
# β¨ Contributors
Feel free to contribute π§ to `ethereum-boilerplate` project. But first, **please read the [Contributing Guidelines](CONTRIBUTING.md) before opening an issue or PR** so you understand the branching strategy and local development environment.
Made with [contrib.rocks](https://contrib.rocks).