How to enable port on cloud server using ufw

UFW, or the “Uncomplicated FireWall”, UFW use iptables to manage it’s firewall rules, you may need this while your are using ubuntu or Debian server.

it’s very simple to use

Firstly instal UFW using following command

apt-get install ufw

You can then set it to allow outgoing traffic and reject incoming traffic by default with the following commands:

ufw default allow outgoing
ufw default allow outgoing

You will need to then enable the firewall:

ufw enable

You can then open specific ports using the following command (remember to replace $PORT with the port number you wish to open, and $PROTOCOL with either tcp or udp:

ufw allow $PORT/$PROTOCOL

If you are looking to open the same port for TCP and UDP, you can just leave out the /$PROTOCOL part:

ufw allow $PORT

Read more...

How to run Angular project on server

Angular is the most used frontend programming language in website development. We can Develop modern, complex, responsive, and scalable web applications with Angular
With this article, I will guide you on how we can make run our angular project on a live server I have used Digital Ocean and Google cloud server to live our project
I have used Ubuntu 20

You must have a node with npm installed on a server if not you can install by following the command

apt update

sudo apt install nodejs npm

You can check the node version by running the following command

node -v

install the Angular CLI globally with:

npm install -g @angular/cli

Go to the project root folder

To download and install npm packages, use the following npm CLI command:

npm install

Use the following CLI command to run your application locally:

ng serve

by default angular take port 4200 and you can see your project running with  http://youipaddress:4200/ If the default port 4200 is not available, you can specify another port with the port flag as in the following

 

ng serve --port 4200

If you are not able to see your project with your IP address run the following

ng serve --host 0.0.0.0

 

Now if you want to run your project with PM2 to keep the application in the background  follow the following step 

npm install -g pm2 
pm2 start "ng serve"
pm2 start "ng serve --host 0.0.0.0"

pm2 start "ng serve --host 0.0.0.0 --port 4200"
pm2 start "ng serve --host 0.0.0.0 --port 4200" --name "MyApp"
pm2 status

Hope this will help you to make you angular application live on server
Read more...

Top 10 Reason to have website for bsuiness

You will always have question “Do I need a website for my business?” Answer is YES. Your business needs a website A GOOD ONE. A professionally designed, lead magnet, sales booster, brand-differentiating website.

You will have a question

But, why is it important to have a website for my business?

As a development company, we suggest having a business website that represents your business. In present day your customer wants to get clear their question before visiting your physical address, it’s become necessary to present your business virtually to your customer

Bill Gates Said

“If your business is not on the internet then your business will be out of business”

This is a time when your business should adopt modern technology, your customer behavior has already changed to adapt to the digital age.

How Mactosys can help you?

Mactosys provide you cutting edge solution to make your business presence online, We build your website understanding your customer behavior. We represent your website to let your customer explore your product, services at their fingertip.

Your website allows your customer to explore all about your business and answer customer query and reach to you.

How Mactosys can help me to expand my business?

Along with website development mactosys helps you to reach customer when they search for any product or service related to your business by doing google SEO, Help your business to reach potential customers by digital marketing, Facebook marketing, Google advertisement.

 

 

Read more...