Git Product home page Git Product logo

cnd_todoapp's Introduction

CND_ToDoApp

Experimenting with Google Cloud Run (Group 3: Coco Koban, Philippe Henderson, Julius Von Davier, Nicolò Prini, Nora Tombers)

Backend

  • Flask-based API microservice.

  • Endpoint: https://todoapp-backend-final-7qlre2lo3a-oa.a.run.app

  • What it does: Can write, update, delete and read all to-do items to and from a Firestore DB.

  • What data it receives: object-format (a dict) data.

  • Actions:

    • /list-all --> Returns all todo list items in the firestore DB as a list.
      • Inputs: None
      • Action: Retrieves all the documents in the Firestore DB 'AllToDo' collection.
      • Returns: A nice list of todo objects.
    • /create-todo --> Creates a todo list item, returns the ID of the created item.
      • Inputs: To-do object (dictionary), with at minimum: {'title': :your title:, 'content': :your content:}
      • Action: Creates new document in Firestore DB 'AllToDo' collection, and writes the data to the document.
      • Returns: Unique ID for the todo item.
    • /update-todo --> Update an existing todo list item.
      • Inputs: To-do object (dictionary), with at minimum: The fields you wish to change (e.g. Title, is_done, etc.) AND the current ID of the todo item.
      • Action: Retrieves the document in the Firestore collection based on its ID, and modifies the desired fields.
      • Returns: success or fail message.
    • /delete-todo --> Delete an existing todo list item.
      • Inputs: To-do item ID, in the form of {'ID': :to-do-ID:}.
      • Action: Deletes the document in Firestore that corresponds to that ID.
      • Returns: success or fail message.

Sources:

Remaining To Do:

  • Clean up backend code to handle errors better.
  • Build CI/CD pipeline
  • Verify that how we're connecting to Firestore is the right way. Need to double-check with the Qwiklabs.
  • Look into scalability parameters and all that stuff.

cnd_todoapp's People

Contributors

phil123095 avatar cococokoko 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.