Skip to content

MeHacking/Ionic-UsedCarsShop

Repository files navigation

🚗 Ionic Used Cars Shop

A mobile application for listing and managing used cars, developed as part of a coursework assignment for the Mobile Business course at the Faculty of Organizational Sciences, University of Belgrade.

📱 Technologies Used

  • Ionic Framework
  • Firebase (Authentication & Firestore)

🧭 App Overview

🏠 Home Page

Displays all cars currently listed on the platform.
Each listing shows key details and the contact phone number of the user who posted it.

🔐 Login Page

Simple and user-friendly interface.
Three modes: login, register, and logout (if already logged in).
Validation ensures all required fields are filled before submitting.

🚘 Your Cars Page

Available only to logged-in users.
Shows a list of cars posted by the current user.
Allows adding, updating, and deleting cars.

➕ Add Page

Accessed via "Your Cars" page.
Includes input fields for car details.
Submit button is disabled until all fields are filled.
Includes a button to return to the previous page.

✏️ Update Page

Pre-fills form fields based on the selected car.
User can save changes or return without updating.

❌ Delete Modal

Confirmation popup to prevent accidental deletions.
Includes “Yes” and “No” options.

🧩 Key Features & Logic

📌 Navigation Bar

Present across all main pages.
Allows switching between Home, Your Cars, and Login.

📋 Car Listing Display

  • Home Page: Displays all cars with contact information.
  • Your Cars Page: Displays only the user's own listings, without showing the phone number.

🔑 Login, Logout & Register

  • Firebase Authentication is used.
  • On login/register, userId is saved in local storage.
  • Logout resets this value to "logged_out" and refreshes the page.

🔄 Data Service Highlights

  • getAutomobilUser() fetches only the cars posted by the currently logged-in user.
  • getAutomobilWithUser() fetches all cars and matches them with their owner's data to display contact information.

About

We've created a simple ionic mobile application that is used for selling used cars.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •