Skip to main content

Guide to Install Web on Linux

This guide will help you install the Investra web frontend on your Linux machine. The web frontend is built using Next.js.

Prerequisites

Before you start, make sure you have the following installed on your Linux machine:

Please follow the below steps,

  1. Extract the investra package that you download from CodeCanyon.
  2. After that you see two zip files called 'core.zip', 'deployment.zip' and 2 folders local_deployment, documentation.
  3. Now extract the core.zip file to the core folder.
  4. Extract the core folder and now you will get four zip files called admin.zip, standalone-client.zip, static-client.zip and mobile.zip on core folder.

As You can see the folder structure like below,

investra
├── documentation
├── core
│ ├── admin.zip
│ ├── standalone-client.zip
│ ├── static-client.zip
│ └── mobile.zip
├── local_deployment
└── deployment.Zip

Step 1: Install Node.js

  1. Install Node.js using the package manager for your Linux distribution. For example, on Ubuntu, you can install Node.js using the following command:
sudo apt-get install nodejs
  1. Verify that Node.js is installed by running the following command:
node --version
  1. Install the Node.js package manager (npm) by running the following command:
sudo apt-get install npm
  1. Verify that npm is installed by running the following command:
npm --version

Step 2: Install Our Client Project

  1. Extract the client project files to the directory standalone-client.zip on core folder and unzip the file.
  2. Open a command prompt and navigate to the project directory.
  3. Run the following command to install the project dependencies:
npm install --force
  1. copy the .example.env file and rename it to .env and update the values in the .env file.

Step 3: Configure Environment Variables

cp .env.example .env
NEXT_PUBLIC_API_URL=https://your-backend-url.com #required
NEXT_PUBLIC_TOKEN_NAME=token
NEXT_PUBLIC_ASSET_URL=https://your-backend-url.com

Step 4: Start the Frontend

npm run dev

Now you can access the frontend at https://your-backend-url.com

Conclusion

Congratulations! You have successfully installed investra web on your Linux machine. You can now start customizing your application. If you have any questions, feel free to reach out to our support team. 🚀