Monorepo for hza Apps
Local development environment setup.
Install Development Tools
-
yarn -
npm i yarn -g
-
Docker - https://docs.docker.com/install/ (Will be user for SQL Server on localhost for development)
-
npx -
yarn global add npx
-
Azure Command Line - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli
-
Azure Functions Core Tools - https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=macos%2Ccsharp%2Cbash
-mssql-scripter https://github.com/microsoft/mssql-scripter/blob/dev/doc/installation_guide.md
-
Azure Data Studio - https://docs.microsoft.com/en-us/sql/azure-data-studio/download?view=sql-server-2017
-
Azure Storage Explorer - https://azure.microsoft.com/en-us/features/storage-explorer/
If you do not already have a Docker SQL Server run yarn: setup:sql
. If you have made changes to the Seed Data or Entities run yarn sql:update
. If you just need to start the sql server again run
yarn sql:start
.
Angular Applications are application that can be run and deployed on their own using the various libraries
Angular Applications live in the /apps
- Hza (with mock json server) -
yarn dev-with-server
- Loans App -
yarn start loans-app --port 4201
- Doc Repo
*if using npm
instead of yarn
replace yarn [command]
with npm run [command]
UI Components are components that do not rely on any business logic or services of any application or library outside of its self.
- Angular Modules
- 3rd Party Modules
- @hza/ui-components
use the following command to create a new UI-Component
ng g lib [name] --directory=ui-components
OR
Use the built in 'nx console UI' extension for VS Code
UI-Components live in /libs/ui-components/[component-name]
The core library houses specific services, interfaces, classes and pipes which are vital to an 'Application` an example of this would be an Authentication service, messaging, events, notifications services, or HTTP Interceptors. Most pieces of the Core Library are single use.
The Core library lives in /libs/core
The shared library houses commonly used functions, interfaces, classes, pipes and services which can be used within feature modules outside of the generic ui-components.
For example a Pipe
which selects the first item from an array.