Hello everyone!
Thank you for purchasing solution. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!
Setting up Quick POS With Inventory Management is very simple. You will receive the following files after extracting project compressed file:
In Order to host the application on Windows or Linux Server even you don't need to create database manully. you just need to change the connection string and based on you connection setting database will be created automatically once application initialize.
Change the connection in appsettings.json file as describe as below image:
C:\inetpub\wwwroot\{{yoursitename}}
sudo apt-get update
sudo apt-get install -y wget apt-transport-https software-properties-common
wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
For the SDK:
sudo apt-get update
sudo apt-get install -y dotnet-sdk-8.0
For the runtime only:
sudo apt-get install -y dotnet-runtime-8.0
sudo apt-get install mysql-server
Run the MySQL secure installation script to secure your MySQL installation. Follow the prompts to configure root password and security settings.
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE posdb;
CREATE USER 'posuser'@'localhost' IDENTIFIED BY '4@#l364R]XsR';
GRANT ALL PRIVILEGES ON posdb.* TO 'posuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Use SCP or FTP to copy files to your server. For example, with SCP:
scp -r ./build/ user@your-server-ip:/var/www/posapp
If Nginx isn't installed, use the following commands:
sudo apt update
sudo apt install nginx
sudo nano /etc/nginx/sites-available/posapp
server {
listen 80;
server_name yourdomain.com;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
error_log /var/log/nginx/posapp-error.log;
access_log /var/log/nginx/posapp-access.log;
}
sudo ln -s /etc/nginx/sites-available/posapp /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
sudo nano /etc/systemd/system/posapp.service
[Unit]
Description=posapp .NET Web API
After=network.target
[Service]
WorkingDirectory=/var/www/posapp
ExecStart=/usr/bin/dotnet /var/www/posapp/POS.API.dll
Restart=always
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-posapp
User=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start posapp.service
sudo systemctl enable posapp.service
sudo ufw allow 'Nginx Full'
sudo ufw reload
Visit http://yourdomain.com
or http://your-server-ip
in your
browser to check if the .NET API is running.
sudo apt-get update
sudo apt-get install -y wget apt-transport-https software-properties-common
wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
For the SDK:
sudo apt-get update
sudo apt-get install -y dotnet-sdk-8.0
For the runtime only:
sudo apt-get install -y dotnet-runtime-8.0
sudo apt-get install mysql-server
Run the MySQL secure installation script to secure your MySQL installation. Follow the prompts to configure root password and security settings.
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE posdb;
CREATE USER 'posuser'@'localhost' IDENTIFIED BY '@4"l364R]XsR';
GRANT ALL PRIVILEGES ON posdb.* TO 'posuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Use a tool like SCP or FTP to copy the build files to your Linux server. For example, with SCP:
scp -r ./build/ user@your-server-ip:/var/www/posapp
If Apache isn't installed, install it with the following commands (Ubuntu):
sudo apt update
sudo apt install apache2
mod_proxy
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_wstunnel
sudo systemctl restart apache2
sudo nano /etc/apache2/sites-available/posapp.conf
<VirtualHost *:80>
ServerName yourdomain.com
ProxyPreserveHost On
ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000/
ErrorLog ${APACHE_LOG_DIR}/posapp-error.log
CustomLog ${APACHE_LOG_DIR}/posapp-access.log combined
</VirtualHost>
sudo a2ensite posapp.conf
sudo systemctl reload apache2
sudo nano /etc/systemd/system/posapp.service
[Unit]
Description=posapp .NET Web API
After=network.target
[Service]
WorkingDirectory=/var/www/posapp
ExecStart=/usr/bin/dotnet /var/www/posapp/POS.API.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-posapp
User=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start posapp.service
sudo systemctl enable posapp.service
Visit http://yourdomain.com
or http://your-server-ip
in your
browser. You should see your .NET API responding and interacting with the MySQL
database.
You have successfully:
Your application is now up and running, accessible via your domain or server IP.
.NET CORE 8 SDK and VISUAL STUDIO 2022, SQL SERVER or MySql 8 +
Although POS can be run without any development experience, it would be much easier if you already have some experience. The following instructions allow you to run a local copy on your machine.
If you have not yet installed nodejs, please Download and globally install nodejs : https://nodejs.org
Note: download
Recommended For Most Users version
A detailed instruction on how to install NodeJS is available here.
Note: Make sure you have Node version >= 4.0 and NPM >= 3 . Also globally installed typescript.
Installing Angular-CLI globally is as simple as running this simple command:
npm install -g @angular/cli
After the tools is installed, go inside of the Angular directory and run below command to install dependencies:
Run npm install -f
to install node dependencies defined in package.json.
To run a local copy in development mode, replace REST API URI (apiUrl) variable in environment file inside src --> environments -->environment.ts
execute ng serve
and go to http://localhost:4200 in your browser.
To run the local copy in production mode and build the sources, execute
ng build
. This will builds a production version of the application. All
html,css and js code is minified and put to dist folder. The contents of
this folder you can to put to your production server when publishing the application.
npm run build
that will create dist/posadminportal
foder.
The project structure is as follows:
POS.sln/ * Projects Solution │ │ │ ├──POS.API * REST API Controller, Dependancy configuration, Auto mapper profile │ │ │ ├──POS.MediatR * Command handler, Query handler, Fluent API validation │ │ │ ├──POS.Repository * Each entity repository │ │ │ ├──POS.Domain * Entity framework dbContext | | │ ├──POS.Common * Generic repository and Unit of work patterns │ │ │ ├──POS.Data * Entity classes and DTO classes │ │ │ ├──POS.Helper * Utility classes
All questions you can send via the contact form HERE.
I will answer all questions within 24-48h in the order they were received.
Please do not panic if I do not answer too long – I love my buyers and I’ll answer for all questions ;)
More information about the terms of support you can see here: https://themeforest.net/page/item_support_policy
Thanks for reading the Instruction, hope it’s been really helpful and resolved most of your concerns.