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:
To run the app, run this in your terminal:
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!