Skip to content

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Garage (Garage Manager)

Preamble: A Django rest framework app to manage garages. One garage can have one or more cars in it. Each car has color, manufacturer, model and production year attributes. Admin user can add or remove a car to a garage. Only superuser can add or remove a car itself. Frontend must be built with angular or reactjs/vuejs. And allow admins/superuser’s to add/modify/remove cars. If user tries to remove a car which is older than 35 years, frontend must show a confirmation.

Local backend deployment

  1. From project root go to backend folder cd backend.
  2. Install Python 3.6 (https://www.python.org/).
  3. Install virtualenv
    python3 -m venv .venv
    source .venv/bin/activate
  1. Install dependencies
pip install -r ./backend/requirements.txt
  1. Run migrations python3 ./backend/manage.py migrate
  2. Run server python3 ./backend/manage.py runserver
  3. Run fixtures python3 ./backend/manage.py loaddata user.json

NOTE: Some of points from task wasn't much clear like is admin user can edit car info or not except moving car to and from garage. SO i made following permissions: Superuser can do anything with car and garage entries. Admin can only edit car and garage entries.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages