Git Product home page Git Product logo

angular-8-boilerplate's Introduction

Angular 8 Boilerplate

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

Project structure

dist/                        compiled version
documentation/               generated document source
e2e/                         end-to-end tests
src/                         project source code
|- app/                      app components
|  |- core/                  core module (singleton services and single-use components)
|  |- shared/                shared module  (common components, directives and pipes)
|  |- app.component.*        app root component (shell)
|  |- app.module.ts          app root module definition
|  |- app.routing.ts         app routes
|  +- ...                    additional modules and components
|- assets/                   app assets (images, fonts, sounds...)
|- environments/             values for various build environments
|- index.html                html entry point
|- styles.css                global style entry point
|- main.ts                   app entry point
|- polyfills.ts              polyfills needed by Angular
+- test.ts                   unit tests entry point

Main tasks

Task automation is based on NPM scripts.

Tasks Description
npm start Run development server on http://localhost:4200/
npm run build:dev Lint code and build app for development env in dist/ folder
npm run build:prod Lint code and build app for production env in dist/ folder
npm run build:local Lint code and build app for local env in dist/ folder
npm run pwa:build:dev Lint code and build PWA app for development env in dist/ folder
npm run pwa:build:prod Lint code and build PWA app for production env in dist/ folder
npm run pwa:build:local Lint code and build PWA app for local env in dist/ folder
npm run lint Lint code
npm run compodoc:gen Generate Project document in ./documentation folder
npm run compodoc:serve You can access ./documentation folder via http://localhost:8080
npm run compodoc It generate latest ./documentation and you can access via http://localhost:8080

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.

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.

PWA Service worker support

To enable service worker go to src/main.ts and uncomment service worker code.

Ivy Support

To enable/disable Ivy go to src/tsconfig.app.json and change variable value enableIvy.

angular-8-boilerplate's People

Contributors

dependabot[bot] avatar patelmayankce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

angular-8-boilerplate's Issues

please give us mockup service

Thank you for your project. It's very helpful for me. But now, I can not try using because login does not work. Thank you

Cannot import new component

When i create a new component with the 'ng generate component' command, the import is added to app.module.ts but when I use the component selector in the application the page renders a white screen with no error.

The signup process works fine?

Hi!

Good job man with your boilerplate!

But could you explain why i see the screen below?
i've made just "yarn start" and can't test the signup process

image

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.