diff --git a/Track_2_ToDo_App/Sprint-02 - Web Application/src/README.md b/Track_2_ToDo_App/Sprint-02 - Web Application/src/README.md new file mode 100644 index 00000000..3ca17a06 --- /dev/null +++ b/Track_2_ToDo_App/Sprint-02 - Web Application/src/README.md @@ -0,0 +1,8 @@ +# Sprint 2 - Source Code Directory +This directory contains the completed source code after the end of each user story. The directory is structured as `app-s02-f02-us02` where +- `s02` - represents the sprint number, in this case sprint 2 +- `f02` - represents the feature number, in this case feature 2 +- `us02` - represents the user story number, in this case user story 2 + +> [!NOTE] +> The code in the directory is the completed solution after the completion of that user story. Like many other things in life, there are many ways to solve a problem. The source code in these directories is just one solution to the problem and does not necessarily represent best practices for a given solution. In many cases we chose simplicity or readability over efficiency. \ No newline at end of file diff --git a/Track_2_ToDo_App/Sprint-03 - Database Integration/src/README.md b/Track_2_ToDo_App/Sprint-03 - Database Integration/src/README.md new file mode 100644 index 00000000..ceab314d --- /dev/null +++ b/Track_2_ToDo_App/Sprint-03 - Database Integration/src/README.md @@ -0,0 +1,8 @@ +# Sprint 3 - Source Code Directory +This directory contains the completed source code after the end of each user story. The directory is structured as `app-s03-f01-us01` where +- `s03` - represents the sprint number, in this case sprint 3 +- `f01` - represents the feature number, in this case feature 1 +- `us01` - represents the user story number, in this case user story 1 + +> [!NOTE] +> The code in the directory is the completed solution after the completion of that user story. Like many other things in life, there are many ways to solve a problem. The source code in these directories is just one solution to the problem and does not necessarily represent best practices for a given solution. In many cases we chose simplicity or readability over efficiency. \ No newline at end of file diff --git a/Track_2_ToDo_App/Sprint-04 - Voice To Text/src/README.md b/Track_2_ToDo_App/Sprint-04 - Voice To Text/src/README.md new file mode 100644 index 00000000..1dc90b1b --- /dev/null +++ b/Track_2_ToDo_App/Sprint-04 - Voice To Text/src/README.md @@ -0,0 +1,8 @@ +# Sprint 4 - Source Code Directory +This directory contains the completed source code after the end of each user story. The directory is structured as `app-s04-f01-us01` where +- `s04` - represents the sprint number, in this case sprint 4 +- `f01` - represents the feature number, in this case feature 1 +- `us01` - represents the user story number, in this case user story 1 + +> [!NOTE] +> The code in the directory is the completed solution after the completion of that user story. Like many other things in life, there are many ways to solve a problem. The source code in these directories is just one solution to the problem and does not necessarily represent best practices for a given solution. In many cases we chose simplicity or readability over efficiency. \ No newline at end of file diff --git a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/README.md b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/README.md index 8ccf2d07..799a1fd2 100644 --- a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/README.md +++ b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/README.md @@ -1,5 +1,5 @@ # Sprint 7 - Source Code Directory -This directory contains the completed source code after the end of each user story. The directory is structured as `app-s06-f01-us01` where +This directory contains the completed source code after the end of each user story. The directory is structured as `app-s07-f01-us01` where - `s07` - represents the sprint number, in this case sprint 7 - `f01` - represents the feature number, in this case feature 1 - `us01` - represents the user story number, in this case user story 1 diff --git a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us01/app.py b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us01/app.py index ea263eac..b02e11bc 100644 --- a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us01/app.py +++ b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us01/app.py @@ -1,8 +1,8 @@ ############################################################################### -## Sprint 6: Advanced To-DO Details -## Feature 1: Add Additional Details to To-Do Items -## User Story 2: Add Priority and Notes Fields -############################################################################ +## Sprint 7: Advanced Styling in your Web Application +## Feature 1: Advanced Web App Styling +## User Story 1: Add completed checkbox and due date details to main list +############################################################################### import os import json from flask import Flask, render_template, request, redirect, url_for, g diff --git a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us02/app.py b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us02/app.py index fc7ed612..31d6bf06 100644 --- a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us02/app.py +++ b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us02/app.py @@ -1,8 +1,8 @@ ############################################################################### -## Sprint 6: Advanced To-DO Details -## Feature 1: Add Additional Details to To-Do Items -## User Story 2: Add Priority and Notes Fields -############################################################################ +## Sprint 7: Advanced Styling in your Web Application +## Feature 1: Advanced Web App Styling +## User Story 2: Add a tabbed interface to show different views +############################################################################### import os import json from flask import Flask, render_template, request, redirect, url_for, g diff --git a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us03/app.py b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us03/app.py index fc7ed612..4853679f 100644 --- a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us03/app.py +++ b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us03/app.py @@ -1,8 +1,8 @@ ############################################################################### -## Sprint 6: Advanced To-DO Details -## Feature 1: Add Additional Details to To-Do Items -## User Story 2: Add Priority and Notes Fields -############################################################################ +## Sprint 7: Advanced Styling in your Web Application +## Feature 1: Advanced Web App Styling +## User Story 3: Prevent User from adding blank task and limit characters +############################################################################### import os import json from flask import Flask, render_template, request, redirect, url_for, g diff --git a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us04/app.py b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us04/app.py index 618ecd5c..15934913 100644 --- a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us04/app.py +++ b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us04/app.py @@ -1,8 +1,8 @@ ############################################################################### -## Sprint 6: Advanced To-DO Details -## Feature 1: Add Additional Details to To-Do Items -## User Story 2: Add Priority and Notes Fields -############################################################################ +## Sprint 7: Advanced Styling in your Web Application +## Feature 1: Advanced Web App Styling +## User Story 4: Confirm before deleting a task +############################################################################### import os import json from flask import Flask, render_template, request, redirect, url_for, g diff --git a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us05/app.py b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us05/app.py index 618ecd5c..6c944ba1 100644 --- a/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us05/app.py +++ b/Track_2_ToDo_App/Sprint-07 - Advanced Styling Your Web App/src/app-s07-f01-us05/app.py @@ -1,8 +1,8 @@ ############################################################################### -## Sprint 6: Advanced To-DO Details -## Feature 1: Add Additional Details to To-Do Items -## User Story 2: Add Priority and Notes Fields -############################################################################ +## Sprint 7: Advanced Styling in your Web Application +## Feature 1: Advanced Web App Styling +## User Story 5: Show spinner when loading recommendations +############################################################################### import os import json from flask import Flask, render_template, request, redirect, url_for, g diff --git a/Track_2_ToDo_App/Sprint-08 - Deploy to the Cloud/src/README.md b/Track_2_ToDo_App/Sprint-08 - Deploy to the Cloud/src/README.md new file mode 100644 index 00000000..06ade7e4 --- /dev/null +++ b/Track_2_ToDo_App/Sprint-08 - Deploy to the Cloud/src/README.md @@ -0,0 +1,8 @@ +# Sprint 8 - Source Code Directory +This directory contains the completed source code after the end of each user story. The directory is structured as `app-s08-f01-us01` where +- `s08` - represents the sprint number, in this case sprint 8 +- `f01` - represents the feature number, in this case feature 1 +- `us01` - represents the user story number, in this case user story 1 + +> [!NOTE] +> The code in the directory is the completed solution after the completion of that user story. Like many other things in life, there are many ways to solve a problem. The source code in these directories is just one solution to the problem and does not necessarily represent best practices for a given solution. In many cases we chose simplicity or readability over efficiency. \ No newline at end of file diff --git a/Track_2_ToDo_App/Sprint-08 - Deploy to the Cloud/src/app-s08-f01-us01/app.py b/Track_2_ToDo_App/Sprint-08 - Deploy to the Cloud/src/app-s08-f01-us01/app.py index bf403428..a0626f2b 100644 --- a/Track_2_ToDo_App/Sprint-08 - Deploy to the Cloud/src/app-s08-f01-us01/app.py +++ b/Track_2_ToDo_App/Sprint-08 - Deploy to the Cloud/src/app-s08-f01-us01/app.py @@ -1,7 +1,7 @@ ############################################################################### -## Sprint 6: Advanced To-DO Details -## Feature 1: Add Additional Details to To-Do Items -## User Story 2: Add Priority and Notes Fields +## Sprint 8: Deploy to Cloud +## Feature 1: Deploy to Azure +## User Story 1: Deploy to Azure ############################################################################ import os import json @@ -13,11 +13,9 @@ from context_processors import inject_current_date app = Flask(__name__) - -# mssql+pyodbc://:@.database.windows.net:1433/todo?driver=ODBC+Driver+17+for+SQL+Server -connection_string = os.environ["SQLAZURECONNSTR_AZURE_SQL_CONNECTIONSTRING"] - -app.config["SQLALCHEMY_DATABASE_URI"] = connection_string +basedir = os.path.abspath(os.path.dirname(__file__)) # Get the directory of the this file +todo_file = os.path.join(basedir, 'todo_list.txt') # Create the path to the to-do list file using the directory +app.config["SQLALCHEMY_DATABASE_URI"] = 'sqlite:///' + os.path.join(basedir, 'todos.db') app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db.init_app(app)