{"id":26059950,"url":"https://github.com/yousefkhalaf0/small-e-commerce-site","last_synced_at":"2026-04-09T23:10:52.400Z","repository":{"id":281287455,"uuid":"944818555","full_name":"yousefkhalaf0/small-e-commerce-site","owner":"yousefkhalaf0","description":"small task using angular library to create e-commerce idea","archived":false,"fork":false,"pushed_at":"2025-03-08T03:24:43.000Z","size":159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T04:20:25.933Z","etag":null,"topics":["angular","auth","css3","ecommerce","frontend","guard","html5","json","reactive-forms","routes","templatedrivenfroms","typescript","website"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yousefkhalaf0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-08T03:03:30.000Z","updated_at":"2025-03-08T03:24:46.000Z","dependencies_parsed_at":"2025-03-08T04:20:32.268Z","dependency_job_id":"4a2a18c2-38a0-47f6-8174-46e50aa3b04c","html_url":"https://github.com/yousefkhalaf0/small-e-commerce-site","commit_stats":null,"previous_names":["yousefkhalaf0/small-e-commerce-site"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yousefkhalaf0/small-e-commerce-site","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousefkhalaf0%2Fsmall-e-commerce-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousefkhalaf0%2Fsmall-e-commerce-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousefkhalaf0%2Fsmall-e-commerce-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousefkhalaf0%2Fsmall-e-commerce-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yousefkhalaf0","download_url":"https://codeload.github.com/yousefkhalaf0/small-e-commerce-site/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousefkhalaf0%2Fsmall-e-commerce-site/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266071519,"owners_count":23871940,"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","auth","css3","ecommerce","frontend","guard","html5","json","reactive-forms","routes","templatedrivenfroms","typescript","website"],"created_at":"2025-03-08T13:48:44.027Z","updated_at":"2026-04-09T23:10:52.372Z","avatar_url":"https://github.com/yousefkhalaf0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Products App\n\nThis is a small Angular application developed as part of an Angular course at ITI. The app demonstrates key Angular concepts such as routing, guards, template-driven forms, reactive forms, and component-based architecture. It also integrates Bootstrap for styling and FontAwesome for icons. The product data is fetched from a local JSON file.\n\n## Features\n\n- **Product Listing**: Displays a list of products fetched from a JSON file.\n- **Product Details**: Shows detailed information about a selected product.\n- **User Authentication**: Includes login and registration forms (template-driven and reactive forms).\n- **Shopping Cart**: Allows authenticated users to view their cart (protected by an auth guard).\n- **404 Page**: Handles unknown routes with a custom \"Not Found\" page.\n- **Responsive Design**: Built using Bootstrap for a responsive and modern UI.\n- **Icons**: Utilizes FontAwesome for icons.\n- **JSON Data**: Product data is loaded from a local JSON file.\n\n## Technologies Used\n\n- **Angular**: Frontend framework.\n- **Bootstrap**: CSS framework for styling.\n- **FontAwesome**: Icon library.\n- **Angular Router**: For navigation and routing.\n- **Angular Forms**: For template-driven and reactive forms.\n- **Angular Guards**: For route protection (auth guard).\n- **JSON**: Local JSON file for product data.\n\n## Project Structure\n\n```\nsrc/\n├── app/\n│   ├── products-app/\n│   │   ├── auth/\n│   │   │   ├── login/\n│   │   │   └── register/\n│   │   ├── cart/\n│   │   ├── navbar/\n│   │   ├── not-found-page/\n│   │   ├── product-details/\n│   │   └── products-list/\n│   ├── guards/\n│   │   └── auth.guard.ts\n│   ├── app.component.ts\n│   ├── app.component.html\n│   ├── app.component.css\n│   ├── app.routes.ts\n│   ├── app.config.ts\n│   └── main.ts\n├── assets/\n│   └── data/\n│       └── products.json  // JSON file containing product data\n├── styles.css\n└── index.html\n```\n\n## Setup Instructions\n\n### Prerequisites\n\n- Node.js (v16 or higher)\n- Angular CLI (v15 or higher)\n- Bootstrap and FontAwesome (already included in the project)\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yousefkhalaf0/small-e-commerce-site.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd small-e-commerce-site.git\n   ```\n3. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n### Running the Application\n\n1. Start the development server:\n   ```bash\n   ng serve\n   ```\n2. Open your browser and navigate to `http://localhost:4200`.\n\n### Building the Application\n\nTo build the project for production, run:\n```bash\nng build --configuration production\n```\n\n## Key Learnings\n\n- **Routing**: Implemented Angular Router for navigation between components.\n- **Guards**: Used an auth guard to protect the cart route.\n- **Forms**: Created both template-driven and reactive forms for user authentication.\n- **Styling**: Integrated Bootstrap and FontAwesome for a polished UI.\n- **Component Architecture**: Organized the app into reusable and modular components.\n- **JSON Data**: Loaded and displayed product data from a local JSON file.\n\n\n## Future Improvements\n\n- Implement a backend API for product data and user authentication.\n- Add functionality to add/remove products from the cart.\n- Enhance the UI with animations and transitions.\n- Write unit and integration tests.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyousefkhalaf0%2Fsmall-e-commerce-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyousefkhalaf0%2Fsmall-e-commerce-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyousefkhalaf0%2Fsmall-e-commerce-site/lists"}