Coder Social home page Coder Social logo

xxl4tomxu98 / todolist-mongodb-flask Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 19 KB

Simple MongoDB Flask App that create, change status, and delete todo list items.

Shell 0.83% Python 35.69% CSS 9.43% HTML 54.05%
mongodb-database mongodb-atlas flask-pymongo pymongo flask-mongodb python-mongodb

todolist-mongodb-flask's Introduction

Clone this repository

Install dependencies

pipenv install -r requirements.txt --python=python3

This create a .venv environment for packages and corresponding Pipfile and Pipfile.lock

Setup your MongoDB Atlas Cluster0 using AWS /N. Virginia(us-east-1). user as Tom(or your name), password in database access and add your local computer's ip address into Atlas network access.

In your Cluster0, connect and connect your application using python driver and version 3.11 or later. Add your connection string into application file("init.py"):

mongodb+srv://Tom:<password>@cluster0.f29fg.mongodb.net/myFirstDatabase?retryWrites=true&w=majority

Get into your pipenv, seed your database, and run your flask app

pipenv shell
flask run

IMPORTANT! If you add any python dependencies to your pipfiles, you'll need to regenerate your requirements.txt before deployment. You can do this by running:

pipenv lock -r > requirements.txt

todolist-mongodb-flask's People

Contributors

xxl4tomxu98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.