Welcome to this Moralis Demo project! This is an open source project to demo the power of Moralis APIs.
Note: this app contains many early stage, beta or experimental features. As a result bugs are highly likely.
This demo app is comprised of a Nodejs server and a React frontend.
The Nodejs server runs at http://localhost:3001/
whilst the frontend loads at http://localhost:3000/
.
Before you begin, ensure you have met the following requirements:
- You have
git
installed on your computer. - You have
Node.js
andnpm
(Node Package Manager) installed. - You have a Moralis API key, get yours at https://admin.moralis.io/
To clone this project, follow these steps:
- Open your terminal (Command Prompt, PowerShell, or any other terminal).
- Navigate to the directory where you want to clone the project.
- Clone the repository by running:
git clone https://github.com/MoralisWeb3/demo-app
- cd into the demo-app repository
To start a local development server on 3001
, run the following command in the root of the project:
export API_KEY=.....
npm install
node index.js
Then, in a new terminal, switch to the client:
cd client
npm install
And start the React frontend:
npm start
(run npm install react-scripts
if you get an error that react-scripts
are missing)
The frontend will be available at http://localhost:3000/
.