๐Ÿ”ฅ
Boilerplate Projects
Moralis Boilerplate starter projects to help you get started in different frameworks.

This simple app logs in user, creates a user profile in Moralis Database and syncs user transactions into Moralis Database.
index.html
<!DOCTYPE html>
<html>
<head>
<title>Vanilla Boilerplate</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script>
<script src="https://unpkg.com/moralis-v1/dist/moralis.js"></script>
</head>
โ€‹
<body>
<button id="btn-login">Moralis Metamask Login</button>
<button id="btn-logout">Logout</button>
<script type="text/javascript" src="./main.js"></script>
</body>
</html>
main.js
const serverUrl = "https://xxxxx.yourserver.com:2053/server";
const appId = "YOUR_APP_ID";
Moralis.start({ serverUrl, appId });
โ€‹
/** Add from here down */
async function login() {
let user = Moralis.User.current();
if (!user) {
try {
user = await Moralis.authenticate({ signingMessage: "Hello World!" });
console.log(user);
console.log(user.get("ethAddress"));
} catch (error) {
console.log(error);
}
}
}
โ€‹
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
โ€‹
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;

This React Boilerplate has all the features to start your new dapp such as:
  1. 1.
    Authenticate user via their wallet
  2. 2.
    Full WalletConnect Support
  3. 3.
    Page for User Balances
  4. 4.
    Page for User NFTs
  5. 5.
    Page for User Transactions
  6. 6.
    Page or Wallet
  7. 7.
    Page for Decentralized Exchange (DEX)
GitHub - ethereum-boilerplate/ethereum-boilerplate: The ultimate full-stack Ethereum Dapp Boilerplate which gives you maximum flexibility and speed. Feel free to fork and contribute. Although this repo is called "Ethereum Boilerplate" it works with any EVM system and even Solana support is coming soon! Happy BUIDL!๐Ÿ‘ทโ€โ™‚๏ธ
GitHub
Cross-chain web3 boilerplate.

The Unity Boilerplate include C# Moralis SDK and has an example Unity scene allowing you to login your users via their wallets, read their tokens and NFTs, interact with smart contracts and much more.
GitHub - ethereum-boilerplate/ethereum-unity-boilerplate: Moralis / Unity3D Boilerplate project used to demonstrate how to integrate Moralis and Moralis Web3Api with Unity 3D.
GitHub
Web3 Unity Boilerplate

This boilerplate is not for production use.
This React Native Boilerplate has all the features to start your new iOS or Android web3 app such as:
  1. 1.
    Authenticate user via their wallet
  2. 2.
    Full WalletConnect Support
  3. 3.
    Page for User Balances
  4. 4.
    Page for User NFTs
  5. 5.
    Page for User Transactions
  6. 6.
    Page or Wallet
  7. 7.
    Page for Decentralized Exchange (DEX)
GitHub - ethereum-boilerplate/ethereum-react-native-boilerplate: The ultimate full-stack Ethereum React Native Dapp Boilerplate which gives you maximum flexibility and speed. Feel free to fork and contribute. Although this repo is called "Ethereum Boilerplate" it works with any EVM system! Happy BUIDL!๐Ÿ‘ทโ€โ™‚๏ธ
GitHub
Cross-chain mobile web3 boilerplate

A simple NFT Marketplace allowing user to do the following:
  1. 1.
    Search NFTs
  2. 2.
    Buy NFTs
  3. 3.
    Sell NFTs
  4. 4.
    Works cross-chain
GitHub - ethereum-boilerplate/ethereum-nft-marketplace-boilerplate
GitHub
NFT Marketplace Boilerplate
Copy link
On this page
Web3 Vanilla Javascript Starter Project
Web3 React Boilerplate
Web3 Unity Boilerplate
Web3 React Native Boilerplate (alpha)
NFT Marketplace Boilerplate