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,
- Extract the investra package that you download from CodeCanyon.
- After that you see two zip files called 'core.zip', 'deployment.zip' and 2 folders local_deployment, documentation.
- Now extract the core.zip file to the core folder.
- Extract the core folder and now you will get four zip files called
admin.zip,standalone-client.zip,static-client.zipandmobile.zipon 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
- 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
- Verify that Node.js is installed by running the following command:
node --version
- Install the Node.js package manager (npm) by running the following command:
sudo apt-get install npm
- Verify that npm is installed by running the following command:
npm --version
Step 2: Install Our Client Project
- Extract the client project files to the directory
standalone-client.zipon core folder and unzip the file. - Open a command prompt and navigate to the project directory.
- Run the following command to install the project dependencies:
npm install --force
- copy the
.example.envfile and rename it to.envand update the values in the.envfile.
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. 🚀