How to Set Up ADAMANT Messenger: A Step-by-Step Guide

Nov 26, 2021 | Blockchain

In this article, we will walk you through the process of setting up the ADAMANT Messenger—an innovative decentralized anonymous messenger based on blockchain technology. You’ll learn how to clone the repository, install dependencies, and customize your installation for development and production environments. Let’s dive in!

What You Need Before You Start

  • A basic understanding of command-line interfaces.
  • Node.js and npm installed on your machine.
  • An Android emulator or a connected device (for Android app support).

1. Clone the Repository

Begin by cloning the ADAMANT Messenger repository. Open your command line and run:

git clone --recursive https://github.com/Adamant-im/adamant-im.git

2. Install Dependencies

After cloning the repository, navigate into the project directory and install the necessary dependencies:

cd adamant-im
npm install

Note: If you encounter issues with Lisk libraries asking for specific Node.js versions, you can bypass this requirement by using:

npm install --ignore-engines

3. Compiles and Hot-Reloads for Development

To start working with the application, run the following command:

npm run dev

4. Compile and Minify for Production

Once you are ready to deploy, make sure to compile and minify your project:

npm run build

5. Preview Production Build Locally

To check the production build on your machine, use:

npm run serve

6. Set Up the Electron App

If you plan to run the Electron application, you will need to execute the following commands:

npm run electron:dev

To build the Electron version, run:

npm run electron:build

7. Support for Android Apps

To open the Android project, execute:

npm run android:open

To run the Android app, use the command:

npm run android:run