Skip to content

Minor update: Ubah judul halaman untuk PR UAS #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ To exit press Ctrl+C

Make sure that you are inside the project directory, where `docker-compose.yaml` file is present. Now, building and running the application server container and mongodb container using `docker-compose` :
```
Building or fetching the necessary images and later, creating and starting containers for the application
Building or fetching the nr3ecessary images and later, creating and starting containers for the application
$ docker-compose up -d

Go to http://localhost:5000 with any of browsers and DONE !!
Expand Down
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
todos = db.todo #Select the collection

app = Flask(__name__)
title = "TODO with Flask"
title = "TODO with RPL UAS"
heading = "ToDo Reminder"
#modify=ObjectId()

Expand Down
36 changes: 36 additions & 0 deletions classdiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@startuml
title Class Diagram - Flask ToDo App

class TodoApp {
- db: MongoClient
- todos: Collection
- title: str
- heading: str

+ redirect_url()
+ lists()
+ tasks()
+ completed()
+ done()
+ action()
+ remove()
+ update()
+ action3()
+ search()
+ about()
}

class Flask {
}

class MongoClient {
+ insert_one()
+ find()
+ update_one()
+ delete_one()
}

TodoApp ..> Flask : uses
TodoApp ..> MongoClient : uses

@enduml
Binary file added docs/uml/class_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions docs/uml/classdiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@startuml
title Class Diagram - Flask ToDo App

class TodoApp {
- db: MongoClient
- todos: Collection
- title: str
- heading: str

+ redirect_url()
+ lists()
+ tasks()
+ completed()
+ done()
+ action()
+ remove()
+ update()
+ action3()
+ search()
+ about()
}

class Flask {
}

class MongoClient {
+ insert_one()
+ find()
+ update_one()
+ delete_one()
}

TodoApp ..> Flask : uses
TodoApp ..> MongoClient : uses

@enduml
Binary file added docs/uml/sequencecreateitem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/uml/sequencelogin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plantuml.jar
Binary file not shown.
21 changes: 21 additions & 0 deletions sequencecreateitem.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@startuml
title Sequence Diagram - Create Task

actor User
participant Browser
participant FlaskApp
participant MongoDB

User -> Browser : Isi form to-do
User -> Browser : Klik tombol Submit
Browser -> FlaskApp : POST /action {name, desc, date, pr}
FlaskApp -> MongoDB : todos.insert_one({...})
MongoDB --> FlaskApp : OK
FlaskApp --> Browser : Redirect ke /list
Browser -> FlaskApp : GET /list
FlaskApp -> MongoDB : todos.find()
MongoDB --> FlaskApp : All tasks
FlaskApp --> Browser : Render index.html
Browser --> User : Tampilkan halaman to-do

@enduml
16 changes: 16 additions & 0 deletions sequencelogin.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@startuml
title Sequence Diagram - Login Flow

actor User
participant Browser
participant FlaskApp
participant MongoDB

User -> Browser : Open /uncompleted
Browser -> FlaskApp : GET /uncompleted
FlaskApp -> MongoDB : todos.find({"done": "no"})
MongoDB --> FlaskApp : List of uncompleted tasks
FlaskApp --> Browser : Render index.html with tasks
Browser --> User : Tampilkan halaman to-do

@enduml