Giter Site home page Giter Site logo

angular2-demo's Introduction

Angular demo project

Demo project/showcase/template for Angular.

Screenshot

Features

  • Angular 7 with Typescript
  • Build: Angular CLI / NPM build, with supplemental Gradle and Maven build files (build a WAR, standalone, don't require a global Node.js installation)
  • Single page application with menu and routing
  • Reactive forms with validation
  • Title service support: each route has its own window title
  • Components: welcome, login, movie-list, movie-detail, changes (Github), menus (app-menu, user-menu, lang-menu)
  • Services: application-service, translate-service, movie-service, github-service
  • Pipes: comma-separated, translate
  • Widgets (components): input-component, input-errors, rating
  • Localization in EN and DE with JSON files, additional languages can be added easily
  • Extension Strategies: SearchService with SearchStrategy extensions

Setup (Node and Angular CLI)

This project requires Node.js for the build process (download 'latest' from https://nodejs.org).

Install node module dependencies:

npm install

Install Angular CLI on your system (run as admin user)

npm install -g @angular/cli

Build / Run

Build and run local server (accessible on http://localhost:4200):

npm run start

Build only (target folder: ./dist):

npm run build

Build / Bundle with Maven

The project also contains a Maven POM, allowing it to be built using the maven-frontend-plugin (which does not require Node or Gulp to be pre-installed on the system). This POM can be used as a template for Java/Angular web projects, and bundles the application as a WAR file in the target folder. Usage:

mvn

Build / Bundle with Gradle

The project also contains a Gradle build descriptor, which (same as the Maven build) bundles the application as a WAR file. Usage:

gradle

Notes

angular2-demo's People

Contributors

pwalser75 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.