PickBazar Documentation
WelcomeHow It Works
Prerequisite
Installation
Available Scripts & Command
How Can I use this app
Demo Deploy
Features
Settings
Payment
Flash Sale
Shop Transfer
Social LoginOTP (Mobile Number Verification)WalletEmail ConfigurationEmail VerificationSubscribeTerms and conditions
SEO and Analytics
Refund
Real-time Notification
Multilingual & Translation
Third-party Integrations
Deployment
API
Back-End Integration
Customizations
Update & Upgrade Guide
FAQ PageContactQuestion & AnswerFAQBreaking ChangesSupportChange Log

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 connect your domain with server. We don't recommend/support deployment the project via IP.

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 20 (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

Make sure that you are logged in your server then follow the next step and run suggested command.

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

To upload the zipped api and deployment files to server you need to run the below command form your pickbazar 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 api.zip and deployment.zip

files path and the path will be look like /home/your_project_folder_path/pickbazar-laravel/api.zip for api.zip file so forth for deployment.zip

bash deployment/deployment.sh

Server Environment setup script - RUN on Virtual Server

bash /var/www/pickbazar-laravel/deployment/nodesetup.sh

Nginx Setup And Settings - RUN on Virtual Server

zx /var/www/pickbazar-laravel/deployment/setenv.mjs

Backend build - RUN on Virtual Server

sudo zx /var/www/pickbazar-laravel/deployment/backendbuildscript.mjs

Frontend build script - RUN on Local PC

Run the below command from your pickbazar-laravel project root

zx deployment/frontendbuildscript.mjs

Frontend run script - RUN on Virtual Server

zx /var/www/pickbazar-laravel/deployment/frontendrunscript.mjs