{"id":18614811,"url":"https://github.com/andrewjbateman/angular-tailwind-authpanel","last_synced_at":"2025-04-11T00:30:55.599Z","repository":{"id":51313745,"uuid":"320541277","full_name":"AndrewJBateman/angular-tailwind-authpanel","owner":"AndrewJBateman","description":":clipboard: Angular app using Webpack \u0026 Tailwindcss components to display a login dashboard","archived":false,"fork":false,"pushed_at":"2023-05-30T19:20:27.000Z","size":2294,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T06:51:14.196Z","etag":null,"topics":["angular","angular16","html5","tailwind","tailwindcss","tailwindcss3","tutorial-code","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/AndrewJBateman.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-11T10:28:25.000Z","updated_at":"2023-05-30T19:19:03.000Z","dependencies_parsed_at":"2024-11-07T03:40:55.811Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-tailwind-authpanel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-authpanel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-authpanel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-authpanel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-authpanel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-tailwind-authpanel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322228,"owners_count":21084333,"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","angular16","html5","tailwind","tailwindcss","tailwindcss3","tutorial-code","webpack"],"created_at":"2024-11-07T03:27:05.224Z","updated_at":"2025-04-11T00:30:52.061Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","readme":"# :zap: Angular Tailwind Auth Panel\n\n* Angular app using [Webpack](https://webpack.js.org/) \u0026 [Tailwindcss](https://tailwindcss.com/) components to display a login dashboard\n* Tutorial code from [CodingAndCaffeine, Youtube channel](https://www.youtube.com/channel/UCQk_kRUoxJQY5vqbJQFgJDA) - see [:clap: Inspiration](#clap-inspiration) below.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/angular-tailwind-authpanel?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-tailwind-authpanel?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-tailwind-authpanel?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-tailwind-authpanel?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Tailwind Auth Panel](#zap-angular-tailwind-auth-panel)\n  * [:page\\_facing\\_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal\\_strength: Technologies](#signal_strength-technologies)\n  * [:floppy\\_disk: Setup](#floppy_disk-setup)\n  * [:wrench: Testing](#wrench-testing)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \\\u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file\\_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Webpack explained in [Webpack documentation Concepts](https://webpack.js.org/concepts/)\n* To build for production Tailwind’s purge option is used to tree-shake unused styles and optimize final build size.\n* `angular.json` file modified to use custom builder and `webpack.config.js` file\n\n## :camera: Screenshots\n\n![Example screenshot](./img/login.png)\n\n## :signal_strength: Technologies\n\n* [Angular framework v16](https://angular.io/)\n* [Webpack v5](https://webpack.js.org/) static module bundler for modern JavaScript applications.\n* [Tailwindcss v3](https://tailwindcss.com/) CSS framework\n* [postcss-loader v7](https://www.npmjs.com/package/postcss-loader) Loader to process CSS with PostCSS. Transformations that are applied to the source code of a module, to pre-process files as you import or “load” them.\n* [postcss-scss v4](https://www.npmjs.com/package/postcss-scss) SCSS parser for PostCSS.\n* [ngx-build-plus v16](https://www.npmjs.com/package/ngx-build-plus) to extend the Angular CLI's default build behavior. Allows a partial custom webpack config. to be merged with the CLI's one.\n\n## :floppy_disk: Setup\n\n* Run `npm i` to install dependencies.\n* Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n* Run `npm run build` to build the project. The build artifacts will be stored in the `dist/` directory.\n\n## :wrench: Testing\n\n* Run `ng test` to run Jasmine unit tests via [Karma](https://karma-runner.github.io)\n* Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## :computer: Code Examples\n\n* extract from `app.component.html` showing tailwindcss used to style input checkbox \u0026 label\n\n```typescript\n\u003cdiv class=\"flex items-center\"\u003e\n  \u003cinput\n    id=\"remember_me\"\n    name=\"remember_me\"\n    type=\"checkbox\"\n    class=\"w-4 h-4 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500\"\n  /\u003e\n  \u003clabel for=\"remember_me\" class=\"block ml-2 text-sm text-gray-900\"\u003e\n    Remember me\n  \u003c/label\u003e\n\u003c/div\u003e\n```\n\n## :cool: Features\n\n* Tailwindcss [sign-in form](https://tailwindui.com/components/application-ui/forms/sign-in-forms) component simply copy-pasted into app.\n* Build file is a compact 244kb thanks to Tailwind’s purge option (manually enabled in `tailwind.config.js`) that tree-shakes unused styles and optimizes the final build size.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working.\n* To-Do: Nothing\n\n## :clap: Inspiration\n\n* [Daniel Laera: How To Add Tailwind In Angular 11 Project](https://www.youtube.com/watch?v=ul8UvsBWM3Y\u0026t=341s)\n* [Angular 11 and Tailwind; Let's go!](https://www.youtube.com/watch?v=ul8UvsBWM3Y)\n* [Tailwindcss docs: Optimizing for Production](https://tailwindcss.com/docs/optimizing-for-production#setting-up-purgecss)\n* [Trungk18.com: How to configure TailwindCSS with Angular and why you should use it](https://trungk18.com/experience/configure-tailwind-css-with-angular/)\n* [Angular Architects: article: Extending the Angular CLI’s build process without ejecting](https://www.angulararchitects.io/aktuelles/extending-the-angular-clis-build-process/)\n* [S. Dielmann: Microfrontend with Angular and Webpack Module Federation](https://www.steffendielmann.com/2021/05/07/microfrontend-with-angular-and-webpack-module-federation/)\n* [Stackoverflow: Karma Jasmine..Uncaught Error..](https://stackoverflow.com/questions/74546242/karma-jasmine-uncaught-typeerror-webpack-require-context-is-not-a-fu)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `gomezbateman@yahoo.com`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-tailwind-authpanel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-tailwind-authpanel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-tailwind-authpanel/lists"}