trilliwon / Catalog

Movie Catalog App built with flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movie Catalog

This application provides a movie catalog, the categories will be given and authorized user can add, edit or delete their items. User can be authorized by google account.


Requirements

  • Python 3.7.1
  • Vagrant 2.2.4
  • VirtualBox 6.0.6
  • oauth2client 4.1.3
  • Flask 1.0.2
  • SQLAlchemy-1.3.3

To setup environment, follow the instruction here


How to run the application

macOS (Prefered)

  1. git clone https://github.com/trilliwon/Catalog.git
  2. cd Catalog/vagrant/catalog
  3. python3 database_setup.py
  4. python3 create_sample_data.py
  5. python3 app.py
  6. open http://localhost:5000

Virtualbox

  1. git clone https://github.com/trilliwon/Catalog.git
  2. cd Catalog/vagrant
  3. vagrant up
  4. vagrant ssh
  5. cd /vagrant/catalog
  6. python3 database_setup.py
  7. python3 create_sample_data.py
  8. python3 app.py

Important

When using vagrant, there's a problem with connect localhost:5000 from browser. With host 0.0.0.0:5000, I am able to access from browser. But in this case, I could not able to login to google.

Screenshots

User points

Login

login


Main (logged in user)

loggedinuser


Add Item

additem


Delete Item

deleteitem


Editing

editing


Read Item

loggedindetail


Main (logged in)

main


Main

notloggedin


JSON Endpoints

{
  "CategoryItem": {
    "category": "HORROR", 
    "description": "An anthology series that tells startling, stranger-than-fiction true crime stories, including a girl trying to escape her overprotective and abusive mother.", 
    "id": 10, 
    "name": "The Act"
  }
}
{
  "CategoryItems": [
    {
      "category": "COMEDY", 
      "description": "Following the events of Avengers: Endgame, Spider-Man must step up to take on new threats in a world that has changed forever.", 
      "id": 1, 
      "name": "Spider-Man: Far from Home"
    }, 
    {
      "category": "COMEDY", 
      "description": "In a world where people collect Pok\u00e9mon to do battle, a boy comes across an intelligent talking Pikachu who seeks to be a detective.", 
      "id": 2, 
      "name": "Pok\u00e9mon Detective Pikachu"
    }, 
    {
      "category": "COMEDY", 
      "description": "A kindhearted street urchin and a power-hungry Grand Vizier vie for a magic lamp that has the power to make their deepest wishes come true.", 
      "id": 3, 
      "name": "Aladdin"
    }, 
    {
      "category": "COMEDY", 
      "description": "Thor is imprisoned on the planet Sakaar, and must race against time to return to Asgard and stop Ragnar\u00f6k, the destruction of his world, at the hands of the powerful and ruthless villain Hela.", 
      "id": 4, 
      "name": "Thor: Ragnarok"
    }
  ]
}

Developer

  • @trilliwon

About

Movie Catalog App built with flask

License:MIT License


Languages

Language:Python 56.3%Language:HTML 36.7%Language:Ruby 6.7%Language:CSS 0.3%