Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Demo project for "Angular architecture patterns" blog serieshttps://netmedia.agency/blog/dev/angular-architecture-patterns-additional-application-features/

License

NotificationsYou must be signed in to change notification settings

netmedia/angular-architecture-patterns

Repository files navigation

This application represents a demo project forAngular architecture patterns blog series athttp://netmedia.io.Frontend app is generated withAngular CLI. It uses it's own local dev server onhttp://localhost:4200/.

Installation

git clone https://github.com/anteburazer/angular-architecture-patterns.gitcd angular-architecture-patternsnpm installnpm run start

Run Development

Runnpm run start for a dev server. Navigate tohttp://localhost:4200/. The app will automatically reload if you change any of the source files.The command will run custom hooks which will set environment to development and merge all i18n files needed for multi language support. The application uses proxy file to connect with the API. Proxy settings are defined inproxy.conf.json

Build for production

Runnpm run sy-build to build the application for production which includes tree shaking, AOT and other cool stuff for minification.This command is defined inpackage.json file under the scripts section and includes regular Angular CLI build command, custom made hooks and generation of service worker file.

When application is built for production it's copied in/dist folder which is the public folder forAngular CLI.

Hooks

Hooks are located in/hooks folder and they are responsible for merging and copying configuration and localization files for development and production.

Note

Copying files is not necessary on angular-cli v1.0.4 and above because it has built in login for this action. You just need to specify which files/folders need to be copied into your destination folder (defaultdist) and you can do that in.angular-cli.json file by specifing the assets array:

"assets": [  "assets",  "favicon.ico",  "service-worker.js",  { "glob": "**/*", "input": "../config", "output": "./config/" },  { "glob": "en.json", "input": "../i18n", "output": "./i18n/" },  { "glob": "hr.json", "input": "../i18n", "output": "./i18n/" }]

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp