Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

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
/starter-kitPublic template

📦 Angular 14+ starter kit for enterprise-grade projects

NotificationsYou must be signed in to change notification settings

ngx-rocket/starter-kit

Repository files navigation

Web project starter kit including modern tools and workflow based onangular-cli, best practices from the community, a scalable base template anda good learning base.

Generated usingngX-Rocket.

Benefits

  • Quickstart a project in seconds and focus on features, not on frameworks or tools

  • Industrial-grade tools, ready for usage in a continuous integration environment and DevOps

  • Scalable architecture with base app template including example components, services and tests

Getting started

  1. Go to project folder and install dependencies:
npm install
  1. Launch development server, and openlocalhost:4200 in your browser:
npm start

Project structure

dist/                        compiled versiondocs/                        project docs and coding guidese2e/                         end-to-end testssrc/                         project source code|- app/                      app components|  |- @shared/               shared module (common services, components, directives and pipes)|  |- app.component.*        app root component (shell)|  |- app.module.ts          app root module definition|  |- app-routing.module.ts  app routes|  +- ...                    additional modules and components|- assets/                   app assets (images, fonts, sounds...)|- environments/             values for various build environments|- theme/                    app global scss variables and theme|- translations/             translations files|- index.html                html entry point|- main.scss                 global style entry point|- main.ts                   app entry point|- polyfills.ts              polyfills needed by Angular+- test.ts                   unit tests entry pointreports/                     test and coverage reportsproxy.conf.js                backend proxy configuration

Main tasks

Task automation is based onNPM scripts.

TasksDescription
npm startRun development server onhttp://localhost:4200/
npm run build [-- --env=prod]Lint code and build app for production indist/ folder
npm testRun unit tests viaKarma in watch mode
npm run test:ciLint code and run unit tests once for continuous integration
npm run e2eRun e2e tests usingProtractor
npm run lintLint code
npm run translations:extractExtract strings from code and templates tosrc/app/translations/template.json
npm run docsDisplay project documentation

When building the application, you can specify the target environment using the additional flag--env <name> (do notforget to prepend-- to pass arguments to npm scripts).

The default build environment isprod.

Development server

Runnpm start for a dev server. Navigate tohttp://localhost:4200/. The app will automatically reload if you changeany of the source files.You should not useng serve directly, as it does not use the backend proxy configuration by default.

Code scaffolding

Runnpm run generate -- component <name> to generate a new component. You can also usenpm run generate -- directive|pipe|service|class|module.

If you have installedangular-cli globally withnpm install -g @angular/cli,you can also use the commandng generate directly.

Additional tools

Tasks are mostly based on theangular-cli tool. Useng help to get more help or go check out theAngular-CLI README.

What's in the box

The app template is based onHTML5,TypeScript andSass. The translation files use the commonJSON format.

Tools

Development, build and quality processes are based onangular-cli andNPM scripts, which includes:

Libraries

Coding guides

Other documentation

License

MIT


[8]ページ先頭

©2009-2025 Movatter.jp