💻 Stack Front Béta : Angular Typescript angular-cli and RxJS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
e2e
src
.editorconfig
.gitignore
.travis.yml
README.md
angular.json
package-lock.json
package.json
set-env.ts
tsconfig.json
tslint.json

README.md

Temp

This project was generated with Angular CLI version 6.0.8.

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.

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.

Demo (This Angular stack is used for this demonstration of MEANie fullstack)

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

Installation

It's straightforward

$ git clone https://github.com/weareopensource/Angular.git && cd Angular
$ npm i

Running Your Application

Development

  • Run npm start for a dev server. Available at http://localhost:4200/.

Production

  • Run npm run build:prod to build your client App

Configuration

Both processes take into account all system environment variables defined under the form WAOS_FRONT_<path_toVariable>. A pre-build npm script turns under the hood those system environment variables into an object, infering paths from the varialbles name, merged to the environment object defined on environment.prod.ts to regenerate that file, regardless of the production or developement mode.

All configuration avalable on environment.ts file are overidable. You can for instance define the API server coordonates by defining those system environment variables:

  • WAOS_FRONT_api_host='my-server'
  • WAOS_FRONT_api_port=4000
  • WAOS_FRONT_api_endPoints_basePath='api2'