User:Jeropbrenda/Sandbox/Tutorials/Holidays viewer

Overview
In this tutorial, you will learn how to build a Wikipedia:Picture of the day viewer using the MediaWiki Action API. Download the code from Github

This tutorial will teach you how to do this using:


 * Python 3 and Flask framework
 * MediaWiki Action API’s Images and Imageinfo modules

Setting up Python
This tutorial uses Python 3. You can download the latest Python version from here:


 * Python for Windows 7, 8, and 10
 * Python for Mac OS X

See the Python beginner's guide for further instructions on installing Python on different operating systems.

Setting up Flask
Pip is a package manager that you can use to install Flask:. If you don't have pip already, install it from the official Pip website.

Step 2: Create a simple Flask application
If you have everything successfully installed, place the following script in, inside your project folder:. When you run it, it should display "Hello world" at http://localhost:5000/:

Next steps

 * Got questions about this tutorial? Ask here on Discourse or on this tutorials discussion page.
 * Contribute a demo app that you have developed using the MediaWiki API to this code samples repository.