creator: Sayam Sawai This is a Project Work
Item catalog is simple RESTful CRUD app where users can read, create,add and delete Items. The items are placed according to their categories. You can add more categories as well
Python Flask Sqlalchemy Ajax Html CSS
You have to download some dependencies and follow some instructions to get the App running
- Vagrant
- Virtual box 14
Go to http://console.developers.google.com/ and setup your account
- Create a project
- Go the the credentials page
- click on create credentials and then ouath client id
- Add Authorized Javascript origins - http://localhost:5000/
- Add Authorized redirect URLs - http://localhost:5000/home
- Click on download JSON
- Copy the JSON file to the /catalog folder and rename it to 'client.json'
- Copy your Client id given by google and paste it in the login.html(on line 26) file in templates folder
- Install both Vagrant and Virtual box
- Clone the full-stack-vm-master file you downloaded
- Go to the vagran/catalog folder
- Launch Vagrant using vagrant up
- log into vagrant using vagrant ssh
- change director to /vagrant using cd /vagrant
- Run the setup_database_itemcatalog.py using python2
- Run the database_populate.py using python2
- Run the app using item_catalog_backend.py using python2
- Go to http://localhost:5000/ to access the app
to get all the items and categories go to /JSON/catalog
to get only categories go to /JSON/category
to get only items go to /JSON/item
https://stackoverflow.com/questions/50011349/return-joined-tables-in-json-format-with-sqlalchemy-and-flask-jsonify to get Some insight about how to properly show all the json data in a serialized manner