Before you begin, ensure you have Node.js and npm installed on your machine.
npm install -g @angular/cli
- Clone the repository:
git clone https://github.com/gitTechhive/angular-sample-dashboard-1.git
- Navigate to the project directory:
cd angular-sample-dashboard-1
- Install dependencies:
npm install
To start the development server run:
ng serve
Default port is 4200. This command will start the development server and automatically open your default browser to localhost:4200.
To start the development server with a specific port, run:
ng serve --port <selected-port>
This command will start the development server on the specified port and automatically open your default browser to http://localhost:<selected-port>/.
To build the project, run:
npm run build
The build artifacts will be stored in the dist/ directory.
Deploying the application can vary depending on your hosting environment. However, typically you would:
Build the project for production using
npm run prod-build
Deploy the contents of the dist/angular-sample-dashboard-1 to your hosting provider.