- Install Vagrant and VirtualBox
- Download or Clone fullstack-nanodegree-vm repository.
- Find the catalog folder and replace it with the content of this current repository
- Launch the Vagrant VM using command:
$ vagrant up
$ vagrant ssh
- Run your application within the VM
$ python /vagrant/catalog/application.py
-
Access and test your application by visiting [http://localhost:5000]
-
Additionally, dummy data can be added by running following commands:
$ python /vagrant/catalog/databasse_setup.py
$ python /vagrant/catalog/items_dummydata.py
To access the data using API endpoint, try the following links: [http://localhost:5000/api/v1/items.json] or [http://localhost:5000/api/v1/categories.json]
For a specific category ID and item ID, try: [http://localhost:5000/api/v1/categories/int:cat_id/item/int:item_id.json]