Build and Install POS from scratch

1. Prepare

  • Install nodejs on your computer

  • POS unbuilt package

2. Build

You can use either Step by step or Automated script guide to build the Magestore POS

Step by step

  1. Extract the POS unbuild package on your computer, you will see the client and server folder

     

  2. Change to the client directory

    cd client

     

  3. Depending on the package you was purchased you will see how many client app under this directory
    In this case, there are 3 apps in the package

     

  4. Go to each directory and run build for the apps
    For example the pos app

    cd pos && npm install && npm run build && cd ../

    The output will be stored in the build directory. In this case is pos/build

    Then do the same way with other apps (if have)
    clickandcollect app

    cd clickandcollect && npm install && npm run build && cd ../

    mobile_pos app

  5. Copy all the built apps to Webpos module
    The mapping for a copy client apps will look like below
    client/<app_name>/build => server/app/code/Magestore/Webpos/build/apps/<app_name>

     

Automated script

Copy below content and save the file named auto_build.sh and place it in the same directory with the server and client directory

File: auto_build.sh


Then run the below command to start the build automation

3. Install the POS

After completing step 2, you will have the POS built package, you will need to create a compressed file and install it on your server

1. Create a compressed file

2. Install Magestore POS on your server

Use one of the following guides to install the POS