Databases

How To Use MongoDB in a Flask Application — step-by-step Databases tutorial on Progressive Robot

How To Use MongoDB in a Flask Application

In web applications, you usually need a database to store and maintain persistent data. Flask is a lightweight Python web framework that provides useful tools and features for creating web applications in the Python Language. MongoDB is a general-purpose, document-oriented, NoSQL database program that uses JSON-like documents to store data. In this tutorial, you’ll build a small todo list web application that demonstrates how to use the PyMongo library, a MongoDB database driver.

Read more
How To Use Terraform With Your Team — step-by-step Databases tutorial on Progressive Robot

How To Use Terraform With Your Team

In this tutorial, you’ll create an organization in Terraform Cloud to which you’ll connect your project. You’ll then use your orgnanization to set up workspaces and resources. You will store your state in the managed cloud so it is always available. You’ll also set up the pg backend with an accompanying managed Postgres database.

Read more
How To Make a URL Shortener with Flask and SQLite — step-by-step Databases tutorial on Progressive Robot

How To Make a URL Shortener with Flask and SQLite

In this tutorial, you will build a URL shortener, which is a service that takes any URL and generates a shorter, more readable version like bit.ly. You will use Flask, SQLite, and the Hashids library to build your URL shortener. Your application will allow users to enter a URL and generate a shorter version, in addition to a statistics page where users can view the number of times a URL has been clicked. You’ll use the Bootstrap toolkit to sty

Read more
MongoDB findOne Example — step-by-step Databases tutorial on Progressive Robot

MongoDB findOne Example

URL: https://www.progressiverobot.com/mongodb-findone-example/ MongoDB findOne() method returns only one document that satisfies the [criteria](/community/tutorials/hibernate-criteria-example-tutorial) entered. If the criteria entered matches for more than one document, the method returns only one document according to natural ordering, which reflects the order in which the documents are stored in the database. MongoDB findOne ![MongoDB findOne](images/mongodb-findone-example-section-1.png) MongoDB findOne() syntax is: […]

Read more
CHAT