Pixer React Documentation
WelcomeHow It WorksInstallationFeaturesAvailable ScriptsCustomizationStyles and Assets
Back-End Integration
Deployment
New PageFAQSupportVersions

Virtual Private Server (Automated Script)

With this tutorial, you can install PickBazar to any type of blank or empty ubuntu server. For example, Digital Ocean Droplets, Amazon Lightsail, AWS, Google Cloud Virtual Private Server, Azure Ubuntu Virtual Private Server, etc.

If you want to use all the scripts (shop, admin, api) on the same server as this tutorial, then we recommend creating a blank ubuntu-based (v20.0.4 lts) server with at least 2+ CPU cores and 2GB+ memory.

Please follow this video with the documentation, and it'll make the installation process relatively easy.

Prerequisite

This automated script is for the *nix system. So if you are using mac or Linux, then you're good to go. But if you are using windows, then install WSL on your computer and use this script using WSL or follow this manual installation

Before starting, the procedure ensures that NodeJS 16 (the latest) is installed on your computer.

npm i -g yarn zx

Now you can follow the script installation procedure,

At first login your server from terminal

ssh SERVER_USERNAME@SERVERIP

Upload api and deployment project to Virtual Server form youp PC - RUN on Local PC

To upload the zipped deployment files to server you need to run the below command form your pixer project root

while running below command you will asked for enter your server username and ip address by entering and a successful connection you will also asked for enter your deployment.zip

files path and the path will be look like /home/your_project_folder_path/pixer-react/deployment.zip

bash deployment/deployment.sh

Server Environment setup script - RUN on Virtual Server

bash /var/www/pixer-react/deployment/nodesetup.sh

Nginx Setup And Settings - RUN on Virtual Server

zx /var/www/pixer-react/deployment/setenv.mjs

Run Backend API - RUN on Virtual Server

zx /var/www/pixer-react/deployment/backendrun.mjs

Frontend build script - RUN on Local PC

Run the below command from your pixer-react project root

zx deployment/frontendbuildscript.mjs

Frontend run script - RUN on Virtual Server

zx /var/www/pixer-react/deployment/frontendrunscript.mjs