This angular starter allows to begin a new app using Angular 15.
This project was angular starter generated with Angular CLI version 15.2.0.
To run your project locally, you need the following installed:
- Run
git clone [email protected]:SUtengda/angular-starter.git
orgit clone --branch=feat/clean [email protected]:SUtengda/angular-starter.git
where I kept only necessary code to run application. - Delete folder
.git
of project (cd angular-starter
thenrm -rf .git
) - Re run
git init
if necessary
or just download zip folder
Angular-cli doesn't do renaming, you should manually modify it.
- Open
angular.json
andpackage.json
file - Replace all occurrences of the old name which is angular-starter
- Rename project folder name
- If
node_modules
folder exist, delete it and reinstall the package
Run npm i
to install the required libraries.
Then run ng serve
Run ng test
to execute the example unit tests
angular-scss-start
ββ πsrc
β ββ πapp
β β ββ πcart
β β β ββ πpipes
β β β β ββ πtotalPriceWithTax.pipe.spec.ts
β β β β ββ πtotalPriceWithTax.pipe.ts
β β β β ββ πtotalTax.pipe.spec.ts
β β β β ββ πtotalTax.pipe.ts
β β β ββ πcart-routing.module.ts
β β β ββ πcart.component.html
β β β ββ πcart.component.scss
β β β ββ πcart.component.spec.ts
β β β ββ πcart.component.ts
β β β ββ πcart.module.ts
β β ββ πproducts * This directory contains components
β β β ββ πcomponents
β β β β ββ πproduct
β β β β ββ πproduct.component.html
β β β β ββ πproduct.component.scss
β β β β ββ πproduct.component.spec.ts
β β β β ββ πproduct.component.ts
β β β ββ πmodels
β β β β ββ πproducts.interfaces.ts
β β β ββ πpipes
β β β β ββ πfilter.pipe.spec.ts
β β β β ββ πfilter.pipe.ts
β β β β ββ πtotalProductCount.pipe.spec.ts
β β β β ββ πtotalProductCount.pipe.ts
β β β β ββ πuniqueCategories.pipe.spec.ts
β β β β ββ πuniqueCategories.pipe.ts
β β β ββ πproducts.component.html
β β β ββ πproducts.component.scss
β β β ββ πproducts.component.spec.ts
β β β ββ πproducts.component.ts
β β β ββ πproducts.module.ts
β β ββ πshared * This directory contains services, guards, models, and any other shared code that is used throughout the application.
β β β ββ πconsts
β β β β ββ πcommon.ts
β β β ββ πmodels
β β β β ββ πproduct.model.ts
β β β ββ πpage-not-found
β β β β ββ πpage-not-found.component.ts
β β β ββ πpipes
β β β β ββ πpriceWithTax.pipe.ts
β β β ββ πservices
β β β β ββ πcart.service.spec.ts
β β β β ββ πcart.service.ts
β β β β ββ πproducts.service.spec.ts
β β β β ββ πproducts.service.ts
β β β ββ πutils
β β β β ββ πcalc-tax.spec.ts
β β β β ββ πcalc-tax.ts
β β β ββ πshared.module.ts
β β ββ πapp-routing.module.ts
β β ββ πapp.component.html
β β ββ πapp.component.scss
β β ββ πapp.component.spec.ts
β β ββ πapp.component.ts
β β ββ πapp.module.ts
β ββ πassets
β β ββ πstyles
β β β ββ π_breakpoint.scss
β β β ββ π_colors.scss
β β β ββ π_mixin.scss
β β ββ π.gitkeep
β β ββ πproducts.json
β ββ πenvironments
β β ββ πutils
β β β ββ πendpoints.ts * register backend api route here
β β β ββ πenv.model.ts * this file declare types of endpoint
β β ββ πenvironment.prod.ts
β β ββ πenvironment.ts
β ββ πfavicon.ico
β ββ πindex.html
β ββ πmain.ts
β ββ πstyles.scss
ββ π.editorconfig
ββ π.eslintrc.json
ββ π.gitignore
ββ πREADME.md
ββ πangular.json
ββ πpackage-lock.json
ββ πpackage.json
ββ πtsconfig.app.json
ββ πtsconfig.json
ββ πtsconfig.spec.json
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
npx npm-check-updates --upgrade --target "minor" --filter "/@angular.*/"
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run npm run build:prod
to build the project on mode production
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.