Loading repository data…
Loading repository data…
PetrosZark / repository
Coding Factory @ AUEB Final Project. Angular Frontend
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
The Car Rental App frontend is an Angular application that works alongside a Spring Boot backend
to provide a seamless car rental experience.
It allows users to manage cars, view listings, and handle administrative tasks through an intuitive, responsive UI.
The Car Rental App is designed to create a peer-to-peer car rental marketplace.
Garage Management
Car Browsing
Admin Panel
Secure Authentication
src/
├── app/ # Main Angular application
│ ├── components/ # UI components
│ ├── shared/ # Shared logic (guards, interfaces, services)
│ ├── app.component.ts # Root component
│ ├── app.routes.ts # App routing
│ └── app.config.ts # App configuration
│
├── assets/
│ └── images/ # Static assets (logos, icons)
│
├── index.html # Main entry point
├── main.ts # Bootstrap logic
└── styles.css # Global styles
Below are screenshots of the app's key features and pages.
Ensure you have the following installed:
npm install -g @angular/cli
git clone https://github.com/PetrosZark/CarRentalApp-Angular_Frontend.git
Run the following command to start the development server:
ng serve
Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
Generate new components, services, or other Angular elements using the Angular CLI:
ng generate component component-name
ng generate directive|pipe|service|class|guard|interface|enum|module
To build the project for development:
ng build
For a production build:
ng build --prod
The build artifacts will be stored in the dist/ directory.
To connect the frontend with the backend API, modify the environment.ts file:
export const environment = {
production: true,
apiUrl: 'https://your-production-url/api'
};
To deploy the application, follow these steps:
ng build --prod
dist/ folder to your preferred web server or hosting platform, or use docker
to containerize the application for easy deployment across environments.For Development:
ng build
For Production:
ng build --prod
# Use Nginx to serve static files
FROM nginx:alpine
# Set working directory
WORKDIR /usr/share/nginx/html
# Remove default Nginx static files
RUN rm -rf ./*
# Copy Angular build files to Nginx directory
COPY dist/carrentalapp/browser .
# Expose port 80
EXPOSE 80
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]
docker build -t carrentalapp-frontend .
docker run -p 80:80 carrentalapp-frontend
The application will be available at http://localhost.