Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.99 KB

README.md

File metadata and controls

61 lines (44 loc) · 1.99 KB
Moralis JS SDK

Moralis Demo Project


Description

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/.

View a Live Demo

Prerequisites & Config

Before you begin, ensure you have met the following requirements:

  • You have git installed on your computer.
  • You have Node.js and npm (Node Package Manager) installed.
  • You have a Moralis API key, get yours at https://admin.moralis.io/

Cloning the Repository

To clone this project, follow these steps:

  1. Open your terminal (Command Prompt, PowerShell, or any other terminal).
  2. Navigate to the directory where you want to clone the project.
  3. Clone the repository by running: git clone https://github.com/MoralisWeb3/demo-app
  4. cd into the demo-app repository

Local Development

Start Server

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/.