Python Flask CRUD Application is a persistent Python based CRUD application using the Flask framework. This project is written in Python, SQLAlchemy and SQLite.
This side project can be found in the Fullstack Foundations course at Udacity, under "Developing with Frameworks"
Here's what you need to do to view this project:
- Install Vagrant and VirtualBox.
- Within Terminal (Mac), navigate to the root directory of this project and launch the Vagrant VM by running the command
vagrant up
. - SSH into the running Vagrant machine
vagrant ssh
. - Run
cd/vagrant/catalog
to change directory. - Run
python database_setup.py
to create the database. - Run
python menu_populator.py
to populate it. - Finally, run
python project.py
to start the web server. - Open your browser and navigate to
http://localhost:5000
Within the downloaded files, this is the relevant structure:
python-web-server-crud/
├── Vagrantfile
└── pg_config.sh
└── catalog/
└── static
└── styles.css
└── templates
├── deletemenuitem.html
├── deleterestaurant.html
├── editmenuitem.html
├── editrestaurant.html
├── menu.html
├── newmenuitem.html
├── newrestaurant.html
└── restaurants.html
├── database_setup.py
├── menu_populator.py
└── project.py
Rupert Ong
Code and documentation copyright 2011-2016 Udacity Inc. All rights reserved.