Deploy Your First Angular App in Shared Hosting using Cpanel.

Thiyagu Arunachalam
4 min readApr 20, 2024

Adding the same old WordPress in shared hosting is too boring, let us try deploying your dynamic angular application.

We can deploy our web apps in shared hosting for a start. We can move to large VPS hosting once we get the hang of the app and have a good budget.

Step 1:

Create your new angular application in your desired folder using the command below.

ng new AppName

Now wait for a few seconds the app will get created. Don’t forget to enable the routing option, because we are going to see a very common issue.

Step 2:

Now create some components using ng g c componentName to test our routing issue.

test component
test component

Step 3:

Since you opted for the routing feature, you have the app.routing.ts file (/src/app/app-routing.module.ts)

app-routing.module.ts

--

--

Thiyagu Arunachalam

Hi there! I'm a science and technology enthusiast with a passion for writing about the latest developments in science and Tech.