An Angular project that renders an endpoint and display some data.
This project was generated with Angular CLI version 12.0.1. And (Yarn)[https://classic.yarnpkg.com/en/docs/cli/install/]. If already have it installed, just run:
$ yarn
If not:
$ yarn global add @angular/cli
If you don't have Yarn installed replace the
yarn
commands with the equivalent usingnpm
instead.
You can run:
$ yarn install:all
That will install all dependencies needed for the API and client.
In /api
directory there's a simple API made in NodeJS that creates the data and endpoint for the client to consume.
You need to run the API serve to see the data:
$ yarn start:api
or
$ cd api
$ yarn start
API will run on https://localhost:8080
Just run:
$ yarn start:client
or
$ cd client
$ yarn start
- Angular 12.0.1
- NGRX
- ES6+
- SCSS
- NG SVG Sprite icons
You can write your own theme and apply your custom styles. There're currently two themes available: Default and Dark Theme.
To create a new theme see how src/assets/scss/theme/
are structured, the most important file that you'll edit is the variables.scss
.
Import your new theme on src/assets/scss/theme
.
IMPORTANT: Default Theme contains the base for all styles and should always be imported as the last.
Required: if you are using a global function, mixing or variable you need to import them in the component file, e.g.:
@import "theme/default/variables";
@import "core";
Core is importing all functions and mixins
To add an icon to the sprite just add to assets/icons
folder. Then you need to run yarn sprite
, you might need to restart the application.
To add the icon into the HTML, e.g:
<svg-icon-sprite
[src]="'assets/sprites/sprite.svg#icon-warning'"
[class]="'icon-warning'"
></svg-icon-sprite>
Copyright (c) Gabriel Lima Licensed under the MIT license.