ChawkBazar Documentation
WelcomeTech We Have UsedGetting Started
Available Scripts & Command
How Can I use this app
Demo Deploy
Features
Settings
Payment
Shop Transfer
SEO and Analytics
API
Multilingual & Translation
OTP (Mobile Number Verification)Email ConfigurationEmail VerificationSocial LoginSubscribeFAQ PageContactTerms and conditions
Third-party Integrations
Deployment
AWSVirtual Private Server (Automated Script)PrerequisiteVercelVirtual Private Server (Manual)Re-build AdminRe-build ShopcPanel/Managed Server
Back-End Integration
Upgrade
Customizations
FAQSupportChangelogs

Virtual Private Server (Automated Script)

With this tutorial, you can install ChawkBazar 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 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

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 your PC - RUN on Local PC

To upload the zipped chawkbazar-api and deployment files to server you need to run the below command form your chawkbazar 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 chawkbazar-api.zip and deployment.zip files path and the path will be look like /home/your_project_folder_path/chawkbazar-laravel/chawkbazar-api.zip for chawkbazar-api.zip file so forth for deployment.zip

bash deployment/deployment.sh

Then login your server using ssh and,

Server Environment setup script - RUN on Virtual Server

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

Nginx Setup And Settings - RUN on Virtual Server

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

Backend build - RUN on Virtual Server

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

Frontend build script - RUN on Local PC

Run the below command from your chawkbazar project root

zx deployment/frontendbuildscript.mjs

Frontend run script - RUN on Virtual Server

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