Front-end quick development framework based on Angular4.
This project is using Angular CLI
- Run
npm install
- Run
npm start
for a dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run npm run build-dev
or npm run build-prod
to build the project. The build artifacts will be stored in the dist/
directory.
Run npm test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via npm start
.
├── e2e
├── lib
└── src
├── app
│ ├── about
│ ├── home
│ ├── notfound
│ └── services
│ └── remote
├── assets
├── common
│ ├── components
│ ├── directives
│ ├── partials
│ ├── pipes
│ └── services
└── config
- Entry:
src/app/app.module.ts
. src/config/config.ts
is local config file, it will ignored by gitsrc/config/routes.ts
is route config, it will be used to bind route with componentssrc/config/intro.ts
is for intro.js- All common components and services are located in
src/common
folder - Add your code in
app
andapp/services
- You can add 3rd party libraries in
src/app/app.modules.ts
- For assets like images or other assets
- Global assets, you can put it in
src/assets
- Component assets, you just put it in component folder, and reference it by relative path in you html file
- Global assets, you can put it in