description |
---|
Angular CLI + NodeJs + Bootstrap |
{% hint style="info" %}
You don’t need to install or configure tools like Webpack or CLI.
They are configured and hidden so that you can focus on the code.
{% endhint %}
-
First of all it's required to Install Node and npm.
-
Update latest angular-cli global package to Angular 8+ with cli 8.x.x
-
Unzip next.zip file, you will find the
next/template/skeleton/
project folder. -
Open your favorite console/terminal and navigate to the
skeleton/
folder and Install packagesnpm install
-
_**_To run project locally: Below command will run the app in development mode. Open http://localhost:4200 to view it in the browser.
ng serve -o
-
The page will automatically reload if you make changes to the code.
-
Now you can use this Angular project for your application development, make the necessary changes.
-
To builds the app for production, below command will create the
dist/
folder inside this project directory .ng build --prod --aot
{% hint style="success" %}
The project was built assuming it is hosted at the server root folder of domain/platform
i.e**http://example.com
**
to deploy build for sub-folder
i.e**http://example.com/folder-name
**
You also need to set <base href="/folder-name/"> {% endhint %}