{"id":24717909,"url":"https://github.com/petroszark/carrentalapp-angular_frontend","last_synced_at":"2026-04-13T22:03:08.167Z","repository":{"id":270115717,"uuid":"907749776","full_name":"PetrosZark/CarRentalApp-Angular_Frontend","owner":"PetrosZark","description":"Coding Factory @ AUEB Final Project. Angular Frontend","archived":false,"fork":false,"pushed_at":"2025-01-07T10:30:19.000Z","size":4639,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T10:33:31.256Z","etag":null,"topics":["angular","bootstrap","typescript"],"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/PetrosZark.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":"2024-12-24T09:46:40.000Z","updated_at":"2025-01-07T10:30:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"03dc1aed-14da-473b-a87d-b0329eceee7e","html_url":"https://github.com/PetrosZark/CarRentalApp-Angular_Frontend","commit_stats":null,"previous_names":["petroszark/carrentalapp-angular_frontend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PetrosZark/CarRentalApp-Angular_Frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetrosZark%2FCarRentalApp-Angular_Frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetrosZark%2FCarRentalApp-Angular_Frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetrosZark%2FCarRentalApp-Angular_Frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetrosZark%2FCarRentalApp-Angular_Frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PetrosZark","download_url":"https://codeload.github.com/PetrosZark/CarRentalApp-Angular_Frontend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetrosZark%2FCarRentalApp-Angular_Frontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31772643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","bootstrap","typescript"],"created_at":"2025-01-27T10:12:47.445Z","updated_at":"2026-04-13T22:03:08.152Z","avatar_url":"https://github.com/PetrosZark.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚗 Car Rental App - Frontend (Angular) \n\n## A [Coding Factory](https://codingfactory.aueb.gr/) @ [AUEB](https://www.aueb.gr/) Final Project. Angular - Typescript - Car Rental Application frontend.\n\n## Overview\n\nThe Car Rental App frontend is an Angular application that works alongside a [Spring Boot backend](https://github.com/PetrosZark/CarRentalApp-Java_Backend) \nto provide a seamless car rental experience.  \nIt allows users to manage cars, view listings, and handle administrative tasks through an intuitive, responsive UI.\n\n## 🎯 Project Overview\nThe Car Rental App is designed to create a peer-to-peer car rental marketplace.\n- Users can list their cars for rent, manage their availability, and update details through a personalized garage.\n- Other users can browse and rent cars available in the system.\n- Administrators have access to a restricted area to manage users and car data.\n\n## ✨ Key Features\n- **Garage Management**\n  - Users can add their car(s) to a virtual garage.\n  - Upload car photos and manage car details (update, delete, or mark unavailable).\n\n- **Car Browsing**\n  - View all available cars listed by other users.\n  - Search and filter cars by brand or city.\n\n- **Admin Panel**\n  - Admins can manage Users – Update roles, deactivate accounts, or delete users.\n  - Manage Car Data – Add car brands, models, and cities.\n\n- **Secure Authentication**  \n  - JWT-based login and session management.  \n  - Role-based access control (User/Admin).    \n\n\n---\n\n## 🔧 Technologies Used\n\n- **Angular 19.0.3**  \n- **TypeScript 5.7.2**  \n- **Bootstrap** (Responsive UI)  \n- **Spring Boot (Backend)**  \n- **MySQL**  \n- **JWT** (Authentication)  \n- **Node.js** (Runtime environment)  \n- **Prettier** (Code formatting)   \n\n---\n\n## 📂 Project Structure\n```\nsrc/\n├── app/                          # Main Angular application\n│   ├── components/               # UI components\n│   ├── shared/                   # Shared logic (guards, interfaces, services)\n│   ├── app.component.ts          # Root component\n│   ├── app.routes.ts             # App routing\n│   └── app.config.ts             # App configuration\n│\n├── assets/                        \n│   └── images/                   # Static assets (logos, icons)\n│\n├── index.html                    # Main entry point\n├── main.ts                       # Bootstrap logic\n└── styles.css                    # Global styles\n```\n\n---\n\n## 🖥️ Screenshots\nBelow are screenshots of the app's key features and pages.\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"./src/assets/screenshots/Welcome.png\" alt=\"Welcome Screen\" width=\"400\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Register.png\" alt=\"Register Screen\" width=\"400\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Login.png\" alt=\"Login Screen\" width=\"400\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Home.png\" alt=\"Home Screen\" width=\"400\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Search2.png\" alt=\"Search Screen\" width=\"400\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Garage.png\" alt=\"Garage Screen\" width=\"400\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Entity_Manager.png\" alt=\"Entity Manager\" width=\"400\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Users.png\" alt=\"Users Screen\" width=\"400\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Brands.png\" alt=\"Brands\" width=\"400\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Models.png\" alt=\"Models\" width=\"400\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Cities.png\" alt=\"Cities\" width=\"400\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"src/assets/screenshots/Garage2.png\" alt=\"Garage View 2\" width=\"400\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n---\n\n## ⚙️ Installation and Setup\n\n### Prerequisites\nEnsure you have the following installed:\n- **Node.js (v20 or higher)** – [Download Node.js](https://nodejs.org/)\n- **Angular CLI** – Install via:\n```bash\nnpm install -g @angular/cli\n```\n### Clone the Repository\n```bash\ngit clone https://github.com/PetrosZark/CarRentalApp-Angular_Frontend.git\n```\n---\n\n### 🚀 Running the Application\n\nRun the following command to start the development server:\n```bash\nng serve\n```\nNavigate to [http://localhost:4200/](http://localhost:4200/). The application will automatically reload if you change any of the source files.\n\n### 🛠️ Code Scaffolding\n\nGenerate new components, services, or other Angular elements using the Angular CLI:\n```bash\nng generate component component-name\nng generate directive|pipe|service|class|guard|interface|enum|module\n```\n--- \n\n### 🏗️ Building the Project\n\nTo build the project for development:\n```bash\nng build\n```\n\nFor a production build:\n```bash\nng build --prod\n``` \n\nThe build artifacts will be stored in the `dist/` directory.\n\n### 🛡️ API Configuration\n\nTo connect the frontend with the backend API, modify the environment.ts file:\n```bash\nexport const environment = {\n  production: true,\n  apiUrl: 'https://your-production-url/api'\n};\n```\n---\n\n## 🌐 Deployment\n\nTo deploy the application, follow these steps:\n1. Build the production version:\n```bash\nng build --prod\n```\n2. Deploy the contents of the `dist/` folder to your preferred web server or hosting platform, or use docker\nto containerize the application for easy deployment across environments.\n\n### 🐳 Docker Deployment\n1. Build the Angular Application for Development or Production\nBefore creating the Docker image, ensure the Angular app is built for production. Run the following command:\n\nFor Development:\n```bash\nng build\n```\nFor Production: \n```bash\nng build --prod\n```\n\n2. Create a Dockerfile in the root of the project:\n```bash\n# Use Nginx to serve static files\nFROM nginx:alpine\n\n# Set working directory\nWORKDIR /usr/share/nginx/html\n\n# Remove default Nginx static files\nRUN rm -rf ./*\n\n# Copy Angular build files to Nginx directory\nCOPY dist/carrentalapp/browser .\n\n# Expose port 80\nEXPOSE 80\n\n# Start Nginx\nCMD [\"nginx\", \"-g\", \"daemon off;\"]\n```\n\n3. Build the Docker Image\n```bash\ndocker build -t carrentalapp-frontend .\n```\n4. Run the Container\n```bash\ndocker run -p 80:80 carrentalapp-frontend\n```\nThe application will be available at http://localhost.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetroszark%2Fcarrentalapp-angular_frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetroszark%2Fcarrentalapp-angular_frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetroszark%2Fcarrentalapp-angular_frontend/lists"}