Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reafreitas1/ice-cream_angular

June/2021 - Angular project with backend and frontend. Using npm functions to create components, services and directives.
https://github.com/reafreitas1/ice-cream_angular

angular-cli angular9 backend component container crud css directive-angular frontend functional-language html5 json material-ui module nodejs npm object-oriented-programming services typescript

Last synced: about 2 months ago
JSON representation

June/2021 - Angular project with backend and frontend. Using npm functions to create components, services and directives.

Awesome Lists containing this project

README

        

### **Angular 9 Project**

https://user-images.githubusercontent.com/79333175/154321579-e548ca51-c68f-46a0-9597-6ebdadeb722a.mp4

Each of the components, directives and services were generated with the command "npm g(enerate)". For each component generated, a route had to be created. I initialized the backend with the JSON server and compile the frontend to read .ts and generate .js.

» Installed Angular
`npm i -g @angular/cli`
» Generating my app
`ng new my-app`
» Started npm by generating package.json
`init npm - y`
» Generating package-lock.json
`npm i json-server`
» Generating frontend
`ng new frontend -- minimal` (option CSS)

And so on, I generated the components, directives and services:
`ng g c components/template/footer`
`ng g c components/template/nav`
`ng g c views/home`
`ng g c components/template/header`
`ng g c views/product-crud`
`ng g c components/product/product-create`
`ng g d directives/pink`
`ng g d directives/for`
`ng g s components/product/product`
`ng g c components/product/product-read`
`ng generate @angular/material:table components/product/product-read2`
`ng g c component/product/product-update`
`ng g c component/product/product-delete`

Schematics Material
https://material.angular.io/guide/schematics