Skip to content

Israel-Arendse/xrwvm-fullstack_developer_capstone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

450 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capstone Project For Israel Arendse - 2024

Module-1: Static Pages

Home Page: homepage

About Us page: about_us

Contact Us: contact_us

(profile images provided freepik.com)

Module-2: User Management

Login Page: Login

Logout Page: logout

Sign-up Page: sign-up

Module-3: Back-End Services

Implement API endpoints using Express-Mongo

Fetch Dealer by ID dealer_details

Fetch Reviews by dealer ID dealer_review

** Fetch all Dealers ** dealerships

** Fetch Dealers by location ** kansasDealers

Django Models and Proxy Services

As part of the project, additional fields have been added to the Django models 'CarMake' and 'CarModel'. Below are the details of these new fields.

CarMake Model:

  • website = models.URLField(blank=True, null=True)
    • This field stores the official website URL for the car make. It is optional and can be left blank or set to null.

CarModel Model:

  • CAR_TYPES field has been updated with new choices:
    CAR_TYPES = [
        ('COUPE', 'Coupe'),
        ('HATCHBACK', 'Hatchback'),
        ('HYBRID', 'Hybrid'),
        # Add more choices as required
    ]

There are other fields created in the 'CarModel' include:

       # Other fields as needed
       dealer_id = models.IntegerField(default=1)
       seating_capacity = models.IntegerField(default=4)
       number_of_doors = models.IntegerField(default=4)
       transmission = models.CharField(max_length=9, default='manual')

        FUEL_TYPES = [
            ('PETROL', 'Petrol'),
            ('DIESEL', 'Diesel'),
            ('HYBRID/PETROL', 'Hybrid/Petrol'),
            ('HYBRID/DIESEL', 'Hybrid/Diesel'),
            ('GAS', 'Gas'),
            ('ELECTRIC', 'Electric'),
        ]
        fuel = models.CharField(max_length=13, choices=FUEL_TYPES, default='Petrol')
        mileage = models.IntegerField(default=60000,
            validators=[
                MaxValueValidator(3999999),
                MinValueValidator(0)
            ])
        engine_size = models.IntegerField(default=2000,
            validators=[
                MaxValueValidator(8000),
                MinValueValidator(500)
            ])

About

fullstack_developer_capstone (Israel-Arendse)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 39.3%
  • JavaScript 32.4%
  • HTML 15.7%
  • CSS 11.1%
  • Dockerfile 1.2%
  • Shell 0.3%