Skip to content
The project files for the "5 Skills to Learn to Become a Backend Web Developer" Treehouse Blog post
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates
README.md
blog.py
setup.py

README.md

This Git repository holds the code from the Treehouse 5 Skills to Learn to Become a Backend Web Developer blog post. Clone the repository, or download and unzip it to a directory. You'll need Python installed to run this code.

To set up a Sqlite3 database, go to your system console or terminal, and change to the directory where you saved this project. Run this command:

python setup.py

To run the app, run this in your terminal:

python blog.py

You'll see output like this:

 * Serving Flask app "blog" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

In your browser, go to the URL shown in the output, and you'll see the list of articles from the database!

You can’t perform that action at this time.