Getting Started
System requirements¶
We recommend the following system requirements for optimum performance:
Frontend
~~~~~~~~
Node.js (16.15.0 or later)
Yarn
Backend
~~~~~~~
PHP 8.0.19 or higher
MySQL (PHP 8 Supported)
ext_curl
Compatible Browsers: Any
Supported OS: Linux, MacOS and Windows
Upload files to the server and Installation¶
With your purchase of Zaistock, you will get a zip file named zaistock.zip
. When you unzip this file, you will find the documentation
,admin-laravel
, frontend-react
and the vercel,netlify
deployment zip file. Unzip the code zip file to get admin-Laravel folders
admin-laravel
documentation
frontend-react
zaistock-frontend-for-vercel-and-netlify.gz
You must upload two distinct domain/subdomains using two distinct methods. First, let's look at how to upload to a server.
Admin¶
- Upload the
admin-laravel
file to your server public_html or domain root directory where Zaistock will be installed. and Extract the file in that directory. - Create a new MySQL database and DB user from your server . and assign that user into database
- First, hit your site
URL
and it will automatically take you to theinstallation
. Click on the Start Installation Process. - You will get the Checking pre-installation(
File Permission
) page. Give Permission(777
) of following file if needed. and If everything is ok then click on Go to thenext step
. -
Now you need to set and Go to the
next step
.- Application =>
app name
,app url
. - Database =>
DB Host
,DB Name
,DB user
,DB Password
. - Email =>
Mail Host
,Port
,Username
,Password
.
- Application =>
-
If everything are correct then its become processing. After few seconds it redirects to zaistock login.
Admin Installation Video¶
Frontend¶
Before uploading a frontend-react
file you need to ready your vps server. To ready the server please follow the steps below.
- Install Node.js and npm: You'll need Node.js and npm (Node Package Manager) installed on your server. You can do this using the following command:
sudo apt update
sudo apt install nodejs npm
- Install pm2: pm2 is a process manager for Node.js that will help you keep your app running in the background. You can install it using npm:
sudo npm install pm2 -g
- Upload
frontend-react
project into your server. - Install dependencies: Navigate to the project directory and install the project dependencies using npm:
cd your_project
npm install
- Build your Next.js app: You need to build your Next.js app to generate the production-ready files that you'll serve on your server. Run the following command:
npm run build
- Start the app with pm2: Use pm2 to start your Next.js app as a background process:
pm2 start npm --name "zaistock" -- start
This command starts your app as a pm2 process and assigns it a name.
- Configure Nginx: To serve your Next.js app to the world, you need to configure Nginx. Create a new Nginx server block configuration file for your app
server {
listen your_port;
server_name your_domain_name;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
- Restart Nginx: Restart Nginx to apply the changes:
Frontend Installation Video in Vercel and GitLab with your domain (Free)
¶
See the video for frontend installation process in vercel
Frontend Installation Video in Netlify and GitLab with your domain (Free)
¶
See the video for frontend installation process in netlify