Welcome to the EasyAngular boilerplate! This project is designed to help you quickly start a new Angular 18 project with Bootstrap 5 and various useful libraries. It comes with pre-coded elements to streamline your development process.
Make sure you have the following installed :
- Node.js (version 20)
- Angular CLI (version 18) using
npm install -g @angular/cli
Clone the repository :
git clone https://github.com/NicolasRoehm/angular-boilerplate.git
cd angular-boilerplate
npm install
- Rename
EasyAngular
andeasy-angular
with your project name - Place favicon generated with RealFavIconGenerator into
src/assets/img/favicon
folder
Run the following command for a development server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
ng-serve
- Bootstrap 5 : SCSS style & ng-bootstrap components
- Axios : HTTP client
- ArrayTyper : Utility for type-safe array operations
- angular-svg-icon : SVG icon support
- ngx-translate : Internationalization library
- Generate models from JSON - https://app.quicktype.io/
- Generate favicon from SVG - https://realfavicongenerator.net/
Generate a new component :
ng generate component component-name
You can also use ng generate
for directives, pipes, services, classes, guards, interfaces, enums, and modules.
Build the project :
ng build
The build artifacts will be stored in the dist/
directory.
Run unit tests via Karma :
ng test
Run end-to-end tests via a platform of your choice. You need to add a package that implements end-to-end testing capabilities :
ng e2e
To get more help on the Angular CLI, use ng help
or visit the Angular CLI Overview and Command Reference page.