DEV Community

Cover image for Angular 12 + ESLint + Material + Transloco + Jest + Compodoc + Docker + Prettier
wlucha
wlucha

Posted on

Angular 12 + ESLint + Material + Transloco + Jest + Compodoc + Docker + Prettier

Angular 12 Starter with Material, Transloco, Jest, Compodoc, Docker Support, ESLint & Prettier

GitHub Project: https://github.com/wlucha/angular-starter

Angular12 Build MIT Quality Gate Status Docker Pulls Docker Image Size (latest by date) David

Features

Angular 12

Angular Material

Jest Unit Testing

✅ Internationalization with Transloco

✅ Auto documentation with Compodoc

✅ Analyse your project with webpack-bundle-analyzer

Docker

ESLint

Prettier

Commit Linting

Deploy

Deploy

Demo

StackBlitz Demo

Install / Development

# Clone the project
$ git clone https://github.com/wlucha/angular-starter
$ cd angular-starter

# Install dependencies
$ npm install

# Start server
$ npm run start

# Open in browser: http://localhost:4200
Enter fullscreen mode Exit fullscreen mode

Docker Deployment

# Build Docker image
$ docker build . -t angular-starter

# Run Docker Container
$ docker run -p 3000:80 angular-starter
Enter fullscreen mode Exit fullscreen mode

Docker Hub

https://hub.docker.com/r/wlucha/angular-starter

Commands

  • npm run start - start the app
  • npm run lint - lint the project
  • npm run test - run unit tests
  • npm run build - build the project
  • npm run build:prod - build the project in production mode
  • npm run build:prod:stats - build the project in product mode with stats
  • npm run analyse - analyse bundle with webpack-bundle-analyzer
  • npm run compodoc - generate compodoc documentation
  • npm run changelog - generate changelog
  • npm run prettier - format the whole project

GitHub Project: https://github.com/wlucha/angular-starter

Discussion (1)

Collapse
mkubdev profile image
Kubdev

Nice one bro.