Create a Moralis Dapp
Each Dapp has an on-chain part (smart contracts) and an off-chain part (server). The server is used in order to collect data from the blockchain and serve it to clients such as web and mobile apps
Each Dapp is usually divided into 2 parts:
- 1.On-chain: Smart Contracts, On-Chain Assets like tokens and NFTs, On-Chain transactions etc.
- 2.Off-chain: Backend infrastructure that collects data from the blockchain, offers an API to clients like web apps and mobile apps, indexes the blockchain, provides real-time alerts, coordinates events that are happening on different chains, handles the user life-cycle and so much more.
Moralis Dapp is used in order to speed up the implementation of the off-chain infrastructure. Moralis Dapp is a bundled solution of all the features most Dapps need in order to get going as soon as possible.
Click Create a new server in the top right corner.
You can use Moralis to develop dApps for mainnets, testnets and local devchains (for example Hardhat and Ganache).
For now, please select Mainnet Server.
Create a Moralis Dapp Mainnet Server
For the purpose of this demo, we select Ethereum, Polygon, BSC and Avalanche.
Now you will see your server in your dashboard, and we can move on and create a web app that talks to the server and is able to login users, fetch user data (tokens, NFTs, historical transactions), and so much more! All cross-chain by default, of course 🤯
The Dapp displays several important indicators as shown in the image above:
The server displays several important indicators as shown in the image above:
Network: Network traffic per second
CPU: Server's CPU Usage
RAM: Server's RAM Usage
DISK: Server's Disk Usage
Number of Users: The number of users that have been authenticated in the server
Every new Dapp created in Moralis now will be Nitro by default. However, those Dapps created before the launch of Moralis Nitro might still be using the legacy version. In order to upgrade the server to Nitro, simply install the coreservices plugin by clicking here.
See this video if you want to understand the power of Moralis Server and how it can help you build cross-chain dApps.
If you prefer to follow a video tutorial - this video covers a lot of what's covered in this article.