Skip to content

IBM-Cloud/cloud-sql-database

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
July 5, 2022 15:19
July 5, 2022 15:49
October 18, 2017 13:53
October 18, 2017 12:50
October 18, 2017 12:50
July 6, 2022 08:55
April 15, 2020 11:54

Note: A former version of the tutorial deployed the app to Cloud Foundry Public on IBM Cloud. You can find the material in the branch cloudfoundry.

IBM Cloud SQL Database

This tutorial shows how to provision a SQL (relational) database service, create a table and load a larger data set, city information into the database. Thereafter, we deploy a web app "worldcities" to make use of that data and show how to access the cloud database. The app is written in Python using the Flask framework.

This tutorial is part of IBM Cloud tutorials and discussed as SQL Database for Cloud Data.

architecture diagram

Up and running in few steps

To get this SQL database-backed app up and running only few steps and about 10 minutes are needed. Please follow the steps outlined in the IBM Cloud tutorial.

To build your own container image and use it for the app, there different options available.

Local testing

  • Install the requirements to run Python directly or build and run the container image.
  • Set the environment variable DASHDB_SSLDSN to the value obtained from the Db2 Warehouse credentials for the key ssldsn.

Feedback

If you have feedback on the code or the related tutorial, please open an issue on this repository.