Skip to content

Latest commit

 

History

History
88 lines (72 loc) · 3.62 KB

README.md

File metadata and controls

88 lines (72 loc) · 3.62 KB

ng-seed/universal

Please support this project by simply putting a Github star. Share this library with friends on Twitter and everywhere else you can.

ng-seed/spa is a seed project for Angular Universal apps following the common patterns and best practices in file and application organization, providing the following features:

Built with @angular v4.2.0, bundled with gulp v4.0 and webpack v3.0.0.

You can find the live app here.

Prerequisites

Packages in this seed project depend on @angular v4.0.0. Older versions contain outdated dependencies, might produce errors.

Also, please ensure that you are using Typescript v2.1.6 or higher.

Installing

# clone the repo
git clone https://github.com/ng-seed/universal.git
cd universal

# use npm (or yarn) to install the dependencies
npm install

# dev build (SPA / lean Angular)
npm run build:spa-dev
# prod build (SPA / lean Angular)
npm run build:spa-prod

# start the server (SPA / lean Angular)
npm run serve:spa
# start the server (SPA / lean Angular, with HMR support)
npm run serve:spa-hmr

# dev build (Universal)
npm run build:universal-dev
# prod build (Universal)
npm run build:universal-prod

# start the server (Angular Universal)
npm run serve

Navigate to http://localhost:1337 for lean Angular (client-side rendering) and http://localhost:8000 for Angular Universal (server-side rendering) in your browser.

License

The MIT License (MIT)

Copyright (c) 2017 Burak Tasci