项目作者: RamyEl-basyouni

项目描述 :
angular7 shapes drawer
高级语言: TypeScript
项目地址: git://github.com/RamyEl-basyouni/angular-graphic-drawer.git
创建时间: 2019-04-29T22:05:44Z
项目社区:https://github.com/RamyEl-basyouni/angular-graphic-drawer

开源协议:

下载


Live demo on heroku

graphic-shapes-drawer/editor

angular-graphic-editor

graphic-shapes-drawer/editor

Getting started

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

Project structure

  1. dist/ web app production build
  2. docs/ project docs and coding guides
  3. e2e/ end-to-end tests
  4. src/ project source code
  5. |- app/ app components
  6. | |- core/ core module (singleton services and single-use components)
  7. | |- shared/ shared module (common components, directives and pipes)
  8. | |- app.component.* app root component (shell)
  9. | |- app.module.ts app root module definition
  10. | |- app-routing.module.ts app routes
  11. | +- ... additional modules and components
  12. |- assets/ app assets (images, fonts, sounds...)
  13. |- environments/ values for various build environments
  14. |- theme/ app global scss variables and theme
  15. |- translations/ translations files
  16. |- index.html html entry point
  17. |- main.scss global style entry point
  18. |- main.ts app entry point
  19. |- polyfills.ts polyfills needed by Angular
  20. +- test.ts unit tests entry point
  21. reports/ test and coverage reports
  22. proxy.conf.js backend proxy configuration

Main tasks

Task automation is based on NPM scripts.

Task Description
npm start Run development server on http://localhost:4200/
npm run serve:sw Run test server on http://localhost:4200/ with service worker enabled
npm run build [-- --configuration=production] Lint code and build web app for production (with AOT) in dist/ folder
npm test Run unit tests via Karma in watch mode
npm run test:ci Lint code and run unit tests once for continuous integration
npm run e2e Run e2e tests using Protractor
npm run lint Lint code
npm run translations:extract Extract strings from code and templates to src/app/translations/template.json
npm run docs Display project documentation and coding guides
npm run prettier Automatically format all .ts, .js & .scss files

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

The default build configuration is prod.

Development server

Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change
any of the source files.
You should not use ng serve directly, as it does not use the backend proxy configuration by default.

Code scaffolding

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

If you have installed angular-cli globally with npm install -g @angular/cli,
you can also use the command ng generate directly.

Additional tools

Tasks are mostly based on the angular-cli tool. Use ng help to get more help or go check out the
Angular-CLI README.

Code formatting

All .ts, .js & .scss files in this project are formatted automatically using Prettier,
and enforced via the test:ci script.

A pre-commit git hook has been configured on this project to automatically format staged files, using
(pretty-quick)[https://github.com/azz/pretty-quick], so you don’t have to care for it.

You can also force code formatting by running the command npm run prettier.

What’s in the box

The app template is based on HTML5, TypeScript and
Sass. The translation files use the common JSON format.

Tools

Development, build and quality processes are based on angular-cli and
NPM scripts, which includes:

Libraries

Coding guides

Other documentation