Art Portfolio
is a RESTful web application that provides a list of items within a variety of categories. Art Portfolio
utilizes the Python framework Flask along with third-party OAuth authentication. Registered users have the ability to post, edit and delete their own items.
Key features of Art Portfolio
include:
- Third-party OAuth authentication (Google, Facebook)
- Mapping HTTP methods to CRUD (create, read, update and delete) operations
- Considering authorization status prior to execution of CRUD operations
- CRUD functionality for image handling
- Responsive design
- JSON endpoints
Art Portfolio
application features watercolor paintings by Maria Stezhko.
- Download VirtualBox. Install the package.
- Download Vagrant. Install the package.
- Download the Virtual Machine configuration
From the terminal, inside the vagrant subdirectory, run the command
$ vagrant up
Log into the virtual machine by running the command
$ vagrant ssh
Art Portfolio
application comes with already populated database artportfolio.db
To set up an empty database artportfolio.db, inside the /vagrant/artportfolio directory, run the command
$ python database_setup.py
From the terminal, inside the /vagrant/artportfolio directory, run the command
$ python artportfolio.py
Access the application by visiting http://localhost:8000 locally.
/artportfolio.json - Displays the art portfolio, including themes and paintings.
/themes/JSON - Displays all themes
/themes/path:theme_name/paintings/JSON - Displays paintings for a specific theme
/themes/path:theme_name/paintings/path:paintings_name/JSON - Displays a specific painting.