Skip to content

Commit e8b74c5

Browse files
committed
Minor update: Ubah judul halaman untuk PR UAS
1 parent 70eee80 commit e8b74c5

File tree

10 files changed

+111
-2
lines changed

10 files changed

+111
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To exit press Ctrl+C
4444

4545
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` :
4646
```
47-
Building or fetching the necessary images and later, creating and starting containers for the application
47+
Building or fetching the nr3ecessary images and later, creating and starting containers for the application
4848
$ docker-compose up -d
4949
5050
Go to http://localhost:5000 with any of browsers and DONE !!

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
todos = db.todo #Select the collection
1212

1313
app = Flask(__name__)
14-
title = "TODO with Flask"
14+
title = "TODO with RPL UAS"
1515
heading = "ToDo Reminder"
1616
#modify=ObjectId()
1717

classdiagram.puml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@startuml
2+
title Class Diagram - Flask ToDo App
3+
4+
class TodoApp {
5+
- db: MongoClient
6+
- todos: Collection
7+
- title: str
8+
- heading: str
9+
10+
+ redirect_url()
11+
+ lists()
12+
+ tasks()
13+
+ completed()
14+
+ done()
15+
+ action()
16+
+ remove()
17+
+ update()
18+
+ action3()
19+
+ search()
20+
+ about()
21+
}
22+
23+
class Flask {
24+
}
25+
26+
class MongoClient {
27+
+ insert_one()
28+
+ find()
29+
+ update_one()
30+
+ delete_one()
31+
}
32+
33+
TodoApp ..> Flask : uses
34+
TodoApp ..> MongoClient : uses
35+
36+
@enduml

docs/uml/class_diagram.png

19.1 KB
Loading

docs/uml/classdiagram.puml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@startuml
2+
title Class Diagram - Flask ToDo App
3+
4+
class TodoApp {
5+
- db: MongoClient
6+
- todos: Collection
7+
- title: str
8+
- heading: str
9+
10+
+ redirect_url()
11+
+ lists()
12+
+ tasks()
13+
+ completed()
14+
+ done()
15+
+ action()
16+
+ remove()
17+
+ update()
18+
+ action3()
19+
+ search()
20+
+ about()
21+
}
22+
23+
class Flask {
24+
}
25+
26+
class MongoClient {
27+
+ insert_one()
28+
+ find()
29+
+ update_one()
30+
+ delete_one()
31+
}
32+
33+
TodoApp ..> Flask : uses
34+
TodoApp ..> MongoClient : uses
35+
36+
@enduml

docs/uml/sequencecreateitem.png

25.5 KB
Loading

docs/uml/sequencelogin.png

20.3 KB
Loading

plantuml.jar

10.7 MB
Binary file not shown.

sequencecreateitem.puml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@startuml
2+
title Sequence Diagram - Create Task
3+
4+
actor User
5+
participant Browser
6+
participant FlaskApp
7+
participant MongoDB
8+
9+
User -> Browser : Isi form to-do
10+
User -> Browser : Klik tombol Submit
11+
Browser -> FlaskApp : POST /action {name, desc, date, pr}
12+
FlaskApp -> MongoDB : todos.insert_one({...})
13+
MongoDB --> FlaskApp : OK
14+
FlaskApp --> Browser : Redirect ke /list
15+
Browser -> FlaskApp : GET /list
16+
FlaskApp -> MongoDB : todos.find()
17+
MongoDB --> FlaskApp : All tasks
18+
FlaskApp --> Browser : Render index.html
19+
Browser --> User : Tampilkan halaman to-do
20+
21+
@enduml

sequencelogin.puml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@startuml
2+
title Sequence Diagram - Login Flow
3+
4+
actor User
5+
participant Browser
6+
participant FlaskApp
7+
participant MongoDB
8+
9+
User -> Browser : Open /uncompleted
10+
Browser -> FlaskApp : GET /uncompleted
11+
FlaskApp -> MongoDB : todos.find({"done": "no"})
12+
MongoDB --> FlaskApp : List of uncompleted tasks
13+
FlaskApp --> Browser : Render index.html with tasks
14+
Browser --> User : Tampilkan halaman to-do
15+
16+
@enduml

0 commit comments

Comments
 (0)