dmahely / item-catalog

A CRUD web application that lets users add items across different categories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Item Catalog

This project is the fourth project in the curriculum of Udacity’s Full Stack Web Developer Nanodegree. This project uses Python, Flask and SQLAlchemy to create a database of categories and items and a CRUD web application. It uses Google authentication and a local permission system for user authorization. The project was styled using Bootstrap.

Before Running the Program

You must have Python installed on your machine. Check your Python version by running python -V.

Running the Program

  1. Install VirtualBox
  2. Install Vagrant
  3. Install Git
  4. Download this repository. Click on the green Clone or download button, then click on Download ZIP. There's no need to log in or make a GitHub account. This will give you a directory named fullstack-nanodegree-vm-master. You will most likely find it in your Downloads folder.
  5. Navigate to the vagrant directory inside of fullstack-nanodegree-vm-master.
  6. Open the terminal app on your Mac or the command prompt on your Windows machine and run vagrant up. This may take some time as it will install an OS on your machine. Don't be alarmed by the green and red lines showing on your screen.
  7. Run vagrant ssh.
  8. Run cd /vagrant. This will take you to the shared folder between your VM and host machine.
  9. Download this repository (dmahely/item-catalog) and place its contents in fullstack-nanodegree-vm-master/vagrant/.
  10. Run python db_setup. This command will create a file named items.db in the same directory.
  11. Run python db_population.py. This command will populate the database with some items and categories.
  12. Run python webserver.py. This command will get the server up and running.
  13. Go to http://localhost:5000/ in your browser.

After Running the Program

You should see a webpage that has some categories and some items.

Acknowledgements

I wrote all of the code except for the gconnect and gdisconnect methods, which were provided to me in a course by Udacity. I was inspired by how Dustin D'Avignon styled his own web app and decided to use Bootstrap to style mine as well.

About

A CRUD web application that lets users add items across different categories.


Languages

Language:Python 62.3%Language:HTML 37.7%