Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
m-eg authored May 3, 2024
2 parents 082e535 + ef30ab0 commit 08f35b0
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 29 deletions.
8 changes: 8 additions & 0 deletions Track_2_ToDo_App/Sprint-02 - Web Application/src/README.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 8 additions & 0 deletions Track_2_ToDo_App/Sprint-04 - Voice To Text/src/README.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -13,11 +13,9 @@
from context_processors import inject_current_date

app = Flask(__name__)

# mssql+pyodbc://<sql user name>:<password>@<azure sql server>.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)
Expand Down

0 comments on commit 08f35b0

Please sign in to comment.