SkillAgentSearch skills...

FlaskWithMongoDB

A Sample Python Flask Application with MongoDBs

Install / Use

/learn @sarathlalsaseendran/FlaskWithMongoDB
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Simple Python Flask Program with MongoDB

Instructions

Download python from https://www.python.org/downloads/

Download MongoDB from https://www.mongodb.com/download-center#community

Install Flask, bson & pymongo

pip install Flask

pip install bson

pip install pymongo

Before running the mongodb instance, we must create a data folder and run below command in command prompt.

"C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe" --dbpath="C:\mongo-data"

Here C:\mongo-data folder is used for saving mongodb files.

By default, it is listening the port 27017.

Download/Clone source code from Github

Run app.py in Command prompt.

python app.py

Our local web server is running in the port 5000 by default.

Happy coding with Flask and MongoDB!!!
View on GitHub
GitHub Stars27
CategoryDevelopment
Updated16d ago
Forks43

Languages

HTML

Security Score

75/100

Audited on Mar 18, 2026

No findings