Skip to content

sarathlalsaseendran/FlaskWithMongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!!!

About

A Sample Python Flask Application with MongoDBs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published