项目作者: ArchitaDesai

项目描述 :
A star wars app to view & favourite star wars data, built with Django.
高级语言: Python
项目地址: git://github.com/ArchitaDesai/star-wars.git
创建时间: 2021-01-06T10:31:18Z
项目社区:https://github.com/ArchitaDesai/star-wars

开源协议:

下载


Star Wars App

A star wars app, built with Django.
  1. Lets you view & favourite your desired star wars data.

Features

  • Loads list of planets & movies from SWAPI
  • View planets & movies’ list views
    • Favourite & unfavourite planets & movies from their list views
  • View favourited planets & movies on the home page
    • Favourite & unfavourite favourited planets & movies from the home page
  • Search planet name to see the detailed view of the planet
    • Favourite & unfavourie resultant planet from the results view
  • Navigate through various views within the app with navbar
  • Pagination support for planets through URL as well as through UI navigation

Screenshots

Login View

Login view

Homepage - Favourite Movies & Planets’ view (can favourite & unfavourite them from homepage)

Favourite Movies & Planets view

List of Movies (can favourite & unfavourite movies)

Movies List

List of Planets (can favourite & unfavourite planets)

Planets List

Search by Planet name (can favourite & unfavourite resultant planet)

Planets List

For Developers

Installation Instructions

Run following commands inside the cloned repository:

  1. # Create virtual environment
  2. virtualenv -p python3.7 venv
  3. # Activate the virtual environment
  4. source venv/bin/activate
  5. # Install libraries needed from requirements.txt
  6. pip install -r requirements.txt
  7. # Go inside the 'star_wars' directory & run migrations
  8. cd star_wars && python manage.py migrate
  9. # To start the development server
  10. python manage.py runserver

Tech Stack

  • Python/Django
    • Framework used to create the app
  • Bootstrap 4
    • To make the app responsive
  • FontAwesome
    • For icons
  • Star Wars API (SWAPI)
    • To fetch star wars data for planets & movies

Technical Details

App Endpoints - /app

  • /login:
    • Login page
  • /home:
    • Home page, showing list of favourited planets & movies
  • /planets:
    • List of planets with pagination & favourite/unfavourite button
    • Pagination:
      • /app/planets/1 - for page 1
      • /app/planets/2 - for page 2
      • Navigation also available through UI
  • /movies:
    • List of movies with favourite/unfavourite button
  • /search:
    • Detailed planet view by its name available through the UI