There is a variety of furniture available in the market nowadays. If you wish to upgrade your home or fill up an empty house, it is beneficial to know all the choices before you go purchasing. This catalog will help you browse through all the options. Product sellers can add furniture data to let people know about new items available in the market.
- Install VirtuaBox
- Install Vagrant
- Download FSND-Virtual-Machine
- On terminal change directory to your downloads and perform
cd FSND-Virtual-Machine/vagrant
- Run
vagrant up
. This command will take a while for the first time. - Run
vagrant ssh
- On terminal change directory to vagrant directory
cd \vagrant
and place all the files and folders from this repo into it.
- Python
- Flask Framework
- SQLAlchemy
- Google OAuth
- json module to provide endpoint urls
- httplib2 module to handle HTTP requests
- On terminal change directory to
vagrant
directory and runvagrant up
. - Run
vagrant ssh
. - Run the file application file
python application.py
. It will start the server. Do not close the terminal or stop the server till you are using the catalog. - To stop the server press
ctrl + c
. - Open the browser window and run
localhost:5000
. It will open the furniture catalog.
- User can browse the catalog without logging-in into the system.
- Home page has a list of categories on sidebar and recently added items with their respective category in work pane.
- User can view the list of items by clicking the category in sidebar or clicking recently added item's category.
- User has to log-in using their Google account in order to perform edit, delete and create operations.
- Logged-in user has option to edit or delete the categories added by him/her. He/she can also add new category to the list.
- When a logged-in user selects category, he/she has option to add new item to that category.
- User can view the item description by clicking the item.
- If user have logged-in and have added the item then, he/she has option to edit or delete the item.
- For all category names in database:
localhost:5000/categories/JSON
- For items in particular category:
localhost:5000/category/<int:cat_id>/items/JSON
- For all items in database:
localhost:5000/items/JSON
- For particular item details:
localhost:5000/item/<int:item_id>/JSON