Udacity Full Stack Nanodegree
This application provides a list of computer parts within a variety of part categories as well as a user registration and authentication system. Registered users have the ability to post, edit and delete their own items but NOT the items of other users.
- Clone the [Full Stack repository] containing the vagrant VM from (https://github.com/udacity/fullstack-nanodegree-vm).
- Copy the contents of this repository into the
fullstack-nanodegree-vm/vagrant/catalog/
directory of the Full Stack repository.
-
From a terminal window
cd
into thefullstack-nanodegree-vm/vagrant/catalog/
directory and typevagrant up
to start the Vagrant virtual machine. -
Type
vagrant ssh
to connect to the Vagrant virtual machine. -
cd
to/vagrant/catalog
and typepython lotsofparts.py
to populate the database with example data -
Type
python application.py
to start running the application. -
Open your browser and go to (http://localhost:8000/) to access the application.
/catalog/<category_id>/json
This endpoint generates a list of parts for a category ID
/catalog/<category_id>/<part_id>/json
This endpoint generates JSON data for a specific category and part ID.