ianychoi / flask-mongodb

Simple CRUD website using MongoDB and Flask (forked and modified using with connection string instead)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple CRUD-Web using MongoDB and Flask

This is a simple example of Python Flask's usage as a simple "Task Manager". The Database Management System is MongoDB. The python-MongoDB connector is PyMongo.

Note that this forked version modifies to use connection strings instead and tweak library versions and codes to work as of May 2022.

Installation

First, you should install MongoDB

then install all dependencies by running the following command:

$ sudo pip install -r requirements.txt

It will install Flask, Flask-WTF, and PyMongo.

Usage

To run the program, first you should make sure MongoDB is running, start it using:

$ sudo service mongod start

then, run the program (or "flask run" is also fine):

$ python app.py

Open your browser and go to localhost:5000 to see the running program.

External References:

About

Simple CRUD website using MongoDB and Flask (forked and modified using with connection string instead)


Languages

Language:Python 58.4%Language:HTML 41.6%