{"id":20969375,"url":"https://github.com/imranr98/frontload","last_synced_at":"2025-05-14T09:34:25.072Z","repository":{"id":42376153,"uuid":"404007200","full_name":"ImranR98/Frontload","owner":"ImranR98","description":"Angular based Web App to be used as a template or starting off point for frontend projects. This is designed to work with https://github.com/ImranR98/Backdraft; see that project for more details.","archived":true,"fork":false,"pushed_at":"2023-04-14T03:52:25.000Z","size":1167,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T02:55:01.191Z","etag":null,"topics":["angular","authentication","bootstrap","bootstrap5","client","frontend","i18n","internationalization","webapp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ImranR98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-09-07T14:22:09.000Z","updated_at":"2025-03-02T10:42:00.000Z","dependencies_parsed_at":"2022-08-23T14:40:46.245Z","dependency_job_id":"2d1e7ac2-b8d8-4f57-8ebe-dc193d641c1a","html_url":"https://github.com/ImranR98/Frontload","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FFrontload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FFrontload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FFrontload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FFrontload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImranR98","download_url":"https://codeload.github.com/ImranR98/Frontload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254112702,"owners_count":22016830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","authentication","bootstrap","bootstrap5","client","frontend","i18n","internationalization","webapp"],"created_at":"2024-11-19T03:20:52.896Z","updated_at":"2025-05-14T09:34:24.435Z","avatar_url":"https://github.com/ImranR98.png","language":"TypeScript","readme":"# 🧺 Frontload\n\nAngular based Web App to be used as a template or starting off point for frontend projects.\n\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ImranR98_Frontload\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=ImranR98_Frontload) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ImranR98_Frontload\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=ImranR98_Frontload) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ImranR98_Frontload\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=ImranR98_Frontload) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=ImranR98_Frontload\u0026metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=ImranR98_Frontload) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=ImranR98_Frontload\u0026metric=bugs)](https://sonarcloud.io/summary/new_code?id=ImranR98_Frontload)\n\n***This is designed to work with [Backdraft](https://github.com/ImranR98/Backdraft); see that project for more details.***\n\n## Features\n- Frontend to all Backdraft endpoints/features.\n- Angular Material UI.\n- Dark mode (automatic; follows system).\n- Internationalization.\n\n## Setup/Usage\n1. Use `npm i` to install required dependencies.\n2. Build the project for production or run it in a development environment using the scripts defined in `package.json`.\n\n## Project Structure\n\n### Components and Pages\nThe `components` directory contains all Angular components, except the page components (accessed via routes).\n\nThe `pages` directory contains all page components.\n\n### Models and Services\nThe `services` directory contains all Angular services, such as those used to make API requests. These should be broken into spearate services based on their function.\n\nThe `models` directory contains any TypeScript models (and in some cases, custom classes) used in the app. \n\n### Everything Else\nThe remaining files in `/src` include:\n- The `app-http.interceptor.ts` contains the HTTP interceptor used to insert the JWT token (if any) into each request, and to intercept 401 errors when the token needs to be refreshed.\n- The `locale` directory contains language translation files for internationalization. For more info on this, read the official [Angular internationalization docs](https://angular.io/guide/i18n-overview).\n\n## Typical Flow for Implementing New Features\n\nImplementing new functionality in the application usually involves:\n- Checking the API spec for relevant endpoints and models.\n- Creating a service (or adding to an existing one) with functions to make the relevant requests (along with any related state management).\n- Creating or modifying the relevant components and pages to make use of the new functions.\n- Adding new routes if needed.\n\n## Notes\n1. Note that the boilerplate code files for unit tests exist (`.spec.ts` files) as they are automatically generated by Angular. However, automated testing has not been implemented.\n\n## Screenshots\n\nLogin Page:\n\n![Login Page](./screenshots/login.png)\n\nInternationalization (Swahili example - incomplete):\n\n![Internationalization (Swahili example - incomplete)](./screenshots/i18n.png)\n\nAccount Page:\n\n![Account Page](./screenshots/account.png)\n\nLogin Revocation:\n\n![Login Revocation](./screenshots/revoke.png)\n\nEmail Verification Code for Signup or Password Reset:\n\n![Email Verification Code for Signup or Password Reset](./screenshots/otp.png)\n\nDark Mode:\n\n![Dark Mode](./screenshots/dark.png)\n\nResponsive UI (Mobile View):\n\n![Responsive UI (Mobile View)](./screenshots/mobile.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranr98%2Ffrontload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimranr98%2Ffrontload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranr98%2Ffrontload/lists"}