Skip to content

YashIndane/flaskapp-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flaskapp-mongodb

A simple webapp to demonstrate flask and mongoDB integration

webmage

Installation

mongoDB on Amazon Linux 2:

Create a /etc/yum.repos.d/mongodb-org-4.4.repo file so that you can install MongoDB directly using yum:

[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc

now do:

$ sudo yum install -y mongodb-org

Complete installation guid -> link

install pymongoand flask by

$ pip install pymongo
$ pip install Flask

Usage

From the terminal create the Database and collection by:

use <data-base name>
db.createCollection("<collection-name>")

Use the ADD, UPDATE, DELETE and FETCHto do the required operations.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published