An open API service indexing awesome lists of open source software.

https://github.com/flight/f1

Formula 1 Results (Angular 6 covered with unit and e2e tests)
https://github.com/flight/f1

angular-material angular6 typescript2

Last synced: 5 months ago
JSON representation

Formula 1 Results (Angular 6 covered with unit and e2e tests)

Awesome Lists containing this project

README

          

# F1 [![Build Status](https://travis-ci.org/Flight/f1.svg?branch=master)](https://travis-ci.org/Flight/f1)

[Link to test on github pages](https://flight.github.io/f1/).

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.1.5.

It uses [Angular Material](https://material.angular.io/) version 6.4.7.

## To run the project
Install NodeJS: https://nodejs.org/en/

Then run those commands in your terminal:

`npm install -g @angular/cli`

`npm install`

`ng serve --open`

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.

For poduction build:
`ng build --prod --base-href /f1/`

## To push changes to github pages

`git subtree push --prefix dist/f1 origin gh-pages`

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

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`.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).