Angular Reference
This repository holds the source code of a reference for the development of a Angular 2+ written mainly in javascript.
Table of content
Overview
The redux like implementation is on the way! Coming soon!
The architecture uses the following structure:
- /components: Handle DOM rendering.
- *.component.ts: Component definition
- *.component.html: HTML template for the component
- *.module.sass: Style files
- *.component.spec.ts: Testing file for the component
- /models: Interfaces that reprecent the data that the application manages
- /services: Handle API connections
Installation
- Clone this repository.
- Install dependencies.
npm install
- Run server.
ng serve
Examples
- Request example.
GET http://localhost:4200
Builder
Coming soon
Deployment
AWS - Elastic Beanstalk
Coming soon!
On the ng CLI
This project was generated with Angular CLI version 10.0.6.
Development server
Run ng serve
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 ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Build
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.