Skip to content

cedricduffournet/ngx-demo

Repository files navigation

Angular Demo

codecov Build Status code style: prettier

This project is using Angular CLI.

Angular 8+ demo project based created with my angular starter.

Getting started

#clone repository
git clone https://github.com/cedricduffournet/ngx-demo.git

#Enter in app folder
cd ngx-demo

#Install package
yarn

#Start developement web server
yarn start

use login : [email protected] / pwd : superadminpwd to connect

The application's backend is available on https://github.com/cedricduffournet/symfony-api-demo. If you don't want to install backend locally, use the demo api for development environment by changing apiHost in environment.ts:

Change

export const environment = {
  ...
  apiHost: 'http://127.0.0.1:81',
  ...
};

To

export const environment = {
  ...
  apiHost: 'https://symfony-api-demo.cedricduffournet.com',
  ...
};

Tasks

  • yarn start run a development web server (http://localhost:4200) that watches the files
  • yarn test run all the jest unit tests once
  • yarn test:watch watch all the source files and run all the unit tests when any change
  • yarn lint check that the code follows style rules
  • yarn build create a production build of the application

Running on Docker

The project can run as docker container. This will run application build with nginx web server :

Included