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.
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
git clone https://github.com/trilliwon/Catalog.git
cd Catalog/vagrant/catalog
python3 database_setup.py
python3 create_sample_data.py
python3 app.py
open http://localhost:5000
git clone https://github.com/trilliwon/Catalog.git
cd Catalog/vagrant
vagrant up
vagrant ssh
cd /vagrant/catalog
python3 database_setup.py
python3 create_sample_data.py
python3 app.py
When using vagrant, there's a problem with connect
localhost:5000
from browser. With host0.0.0.0:5000
, I am able to access from browser. But in this case, I could not able to login to google.
{
"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"
}
]
}
- @trilliwon