FlaskWithMongoDB
A Sample Python Flask Application with MongoDBs
Install / Use
/learn @sarathlalsaseendran/FlaskWithMongoDBREADME
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.
