This is an example project demonstrating the usage of metapro wallet with Angular.
Before you can run this project, you need to have the Angular CLI installed. If you haven't installed it already, please follow the instructions below:
-
Open your command-line interface (CLI).
-
Install Node.js by visiting the official website and downloading the installer for your operating system. Follow the installation instructions provided.
-
Verify that Node.js and npm (Node Package Manager) are installed by running the following commands in your CLI:
node --version npm --version
You should see the version numbers of Node.js and npm printed in the output.
-
Install the Angular CLI globally by running the following command in your CLI:
npm install -g @angular/cli
- Clone this repository to your local machine:
git clone https://github.com/CoinSwap-Space/metapro-connector-angular.git
- Change to the project's root directory:
cd metapro-connector
- Install the project dependencies:
npm install
- Start the development server by running the following command in the project's root directory:
This command will build the project and start a local development server. Open your web browser and navigate to http://localhost:4200 to see the running application.
npm start
- Click the "Connect" button to initiate the connection.
- Follow the on-screen instructions to complete the connection process. A QR code will be displayed, which you can scan using a metapro wallet app.
- Once connected, you will see the connected status and the accounts associated with the connected wallet, if available.
- Click the "Disconnect" button to terminate the session.