Skip to content

abdrrahim2002/simple-video-rental-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video rental application (Movie Mania)


Overview

Movie Mania is a simple video rental application developed using Django. This project focuses on the fundamental concepts of the Django framework, providing a straightforward interface to manage a collection of movies.


Features

  • Movie Listings: View a list of movies, each with its genre, stock number, and daily rental rate.
  • API Integration: Created an API using django-tastypie to expose movie data in JSON format, making it easy to share and access across multiple platforms.

home detail

Example of API response

api

Learning Objectives

Throughout this tutorial, I have learned:

  • Understanding the fundamental aspects of the Django framework
  • Creating and managing models, views, and templates.
  • Implementing an API using django-tastypie for data sharing in JSON format.
  • Focusing on functionality and logic rather than styling.

Installation

To run this project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/abdrrahim2002/simple-video-rental-application.git
cd simple-video-rental-application/
  1. Create a virtual environment:
virtualenv venv
source venv/bin/activate
  1. Install the required packages:
pip install -r requirements.txt
  1. Create the database:
python manage.py makemigrations
python manage.py migrate
  1. Create super user :
python manage.py createsuperuser
  1. Run the Django development server:
python manage.py runserver
  1. Open your browser and enter to the admin section to start add you movies infos by visiting http://127.0.0.1:8000/admin

  2. to see the api response visit http://127.0.0.1:8000/api/movies/


Acknowledgments

Special thanks ❤️ to Mosh Hamedani for the excellent tutorial that guided me through this project. His teaching has been invaluable in enhancing my understanding of Django.


Thank you for taking the time to check out Movie Mania! I hope you find it insightful and enjoyable!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published