Setting up for local development
Backend
first clone the repository
edit your app.env.example file to include your database credentials and rename it to app.env
This will start the backend server
Now go to localhost:port/admin
to create the first admin user
To install and set up the web client extension in Chrome or Chromium-based browsers, follow these steps:
- Open your browser and click on the three-dot menu in the top-right corner.
- Navigate to More tools > Extensions.
- In the Extensions page, enable the Developer mode toggle switch located in the top-right corner. This allows you to load unpacked extensions.
Cloning the GitHub Repository
Next, you need to clone the GitHub repository for the web client extension:
- Open your terminal or command prompt.
- Run the following command to clone the repository:
Installing Dependencies and Building the Extension
Now, you’ll install the necessary dependencies and build the extension:
- Run the following command to install the dependencies:
- Once the installation is complete, build the extension by running:
If the dev server is throwing Error, don’t worry, it’s trying to start the brave browser.
Goto the rollup.config.js
and edit the start script to your preffered chromium based browser and you would be good to global.
we recommend installing extension reloader
Loading the Unpacked Extension
After building the extension, you can load it into your browser:
- Go back to the Extensions page in your browser.
- Click on the Load unpacked button that appears after enabling Developer mode.
- Browse to the
public
folder within the cloned repository and select it. - The extension will be loaded into your browser.
Configuring the Extension
Upon loading the extension, you will be prompted to enter the base URL:
- Obtain the base URL from the JSON string provided by the admin.
- Paste the base URL into the prompt.
- Enter your username and password when prompted.
Congratulations! You have successfully installed and set up the web client extension. You are now ready to use it.