Skip to content

Files

Latest commit

54c13a2 · Nov 7, 2023

History

History
This branch is up to date with exadel-inc/CompreFace:master.

ui

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 10, 2021
Jul 7, 2020
Feb 15, 2023
Dec 29, 2020
Sep 5, 2022
Nov 7, 2023
Oct 14, 2020
Dec 22, 2020
Jun 4, 2020
Sep 8, 2020
Dec 22, 2020
Jan 19, 2021
Jun 6, 2022
Jan 19, 2021
Dec 5, 2022
Jun 6, 2022
Oct 14, 2020
Oct 14, 2020
Jun 4, 2020

CompreFace frontend

This project was generated with Angular CLI version 8.3.19.

quickstart

Run npm install

Run npm start the web app will be available at http://localhost:4200

NOTE: you will need the API to be up and running. Instructions to up this can be found in the README file in /dev folder.

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.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

#Project structure and architecture

###Folder structure styles: folder with scss common styles
core folder with Global framework-based services
data global models, enums, classes, interfaces (user model, permissions, roles ect. NO Dto's data inside!!!!). Don't based on specific framework/plugin
feature/containers Feature specific smart/container components. Communicates with store through facade. Styles less.
feature/components Feature specific dump/presentational components. Communicates with containers through Input/Output. Logic less.
pages/ Page specific router modules (home, 404, login ect.) with component which are responsible for page layout and composition of features

store Store folder. index.ts contains union store and reducers
store/featureName Store for one feature. store/featureName/module Feature store encapsulated into feature module and declared StoreModule.forFeature('Feature', FeatureReducer) store/featureName/actions Store actions. Can be handled by effect and/or reducer. Can be called in facade.
store/featureName/effects Actions handler which needs to produce some side effect(API call, etc.) and then call facade method if needed.
store/featureName/selectors Selectors for feature state store/featureName/reducers Actions handler which directly changes store data. Pure function.
store/featureName/feature-entitys.service.ts service for access for entities https://ngrx.io/guide/data/entity-services