Skip to content

offline installation (sqlite backend)

Muhammad Taha Khan edited this page Oct 9, 2023 · 17 revisions

Step-by-Step Guide to Setup RCO Soul Backend

Prepare offline installation

  1. Download the RCO Project:

    Download the latest version of the RCO project from this repository's homepage onto your internet-connected device that is running the same operating system as the target device. See link location in screenshot below.

download link

  1. Prepare the Project:

    • Open the downloaded folder and navigate to the root directory.

    • Run yarn install to install the project dependencies.

    • Create .env file at the root of the project and paste the following lines in it

    • Run yarn build to build the project. This will generate the necessary files in the dist folder.

  2. Zip the Project:

    • Zip up the entire folder. This zipped folder will be used for deployment.

Perform offline installation

  1. Transfer to Target Device:

    Transfer the zipped folder to the target device where you want to deploy.

  2. Install Node.js:

    Node.js is required for the RCO-Soul project on the target device. Visit the official Node.js website to download and install the v18 version.

  3. Extract the Project:

    • On the target device, open the folder where you transferred the zipped folder.

    • Extract the contents of the zipped folder to obtain project.

  4. Run the Server:

    • Open the command prompt or terminal on the target device.

    • Navigate to the extracted folder path.

    • Run the server by executing the command: yarn serve:dev. This will initiate the server, and it will start running on port 8000.

  5. Run RCO frontend

    • Open another command prompt or terminal on the target device while keeping the first one open

    • Navigate to the extracted folder path.

    • Run the server by executing the command: node server.mjs. This will initiate the server, and it will start running on port 8080.

  6. Access the RCO Project:

    • Launch a web browser on the target device.

    • Enter localhost:8080 in the browser's address bar and press Enter. This will access the running RCO project.

By following these steps, you will successfully set up the backend server required for RCO frontend on your target device and be able to work with the application efficiently.