Coder Social home page Coder Social logo

climate-change's Introduction

This project was generated with Angular CLI version 9.1.9.

Angular Universal 100% powered by Angular CLI

Fast, Unopinionated, Minimalist starter kit for Angular Universal 100% powered by Angular CLI.

Unlike the Official Angular Universal starter kit and other Awesome Universal Seed Projects, this starter kit is universal 100% which means you developing for both browser and server at the same time.

The main other difference is that you only need Angular CLI to kick off your next Angular Universal project:

  • ng build - Building bundles for both browser and server platforms in same compilation ;
  • ng serve - Running universal dev server with Hot Module Replacement (HMR) enabled on browser and server sides ;
  • ng serve -c spa - Running universal dev server with Server Side Rendering (SSR) disabled for angular routes only.

In other words, this starter kit gives superpower for those who want develop universal application fastly with no pain. Just keep in mind with great power comes great responsibility (Universal Gotcha's).

Getting started

git clone https://github.com/enten/angular-universal
cd angular-universal
npm install
ng serve

Development server

Run ng serve to start universal dev server. Navigate to http://localhost:4000/.

The app will automatically hot-reload on server and browser sides if you change any of the source files.

The full compilation will automatically restart if a hot chunk can't be applied on server side.

Tip: run ng serve -c spa to disable server side rendering of routes only.

Universal dev server with ng-udkc

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/app directory.

Run ng build --prod for a production build.

Run node dist/app/server/main.js to start application built.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

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.