Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 1.7 KB

README.md

File metadata and controls

35 lines (32 loc) · 1.7 KB

Prerequisites

  • Python 3
  • Flask (for Python 3)

Running the website

  1. Apply the following patch, since Flask will run on a different port:
diff --git a/index.html b/index.html
index 57d2c5a..5c8be9b 100644
--- a/index.html
+++ b/index.html
@@ -95,7 +95,7 @@
                                         <input type="text" class="form-control" name="lastName" placeholder="Last name" required>
                                     </div>
                                     <div class="col-auto">
-                                        <button type="submit" formaction="/database/getInfo" class="btn btn-primary mb-2">Lookup Guest</button>
+                                        <button type="submit" formaction="http://localhost:5000/getInfo" class="btn btn-primary mb-2">Lookup Guest</button>
                                     </div>
                                 </div>
                             </form>
@@ -126,7 +126,7 @@
                                         <label class="form-check-label" for="vegetarianNo">No</label>
                                     </div>
                                 </fieldset>
-                                <button type="submit" formaction="/database/updateInfo" class="btn btn-primary mb-2">Update Info</button>
+                                <button type="submit" formaction="http://localhost:5000/updateInfo" class="btn btn-primary mb-2">Update Info</button>
                             </form>
                         </div>
                     </div>
  1. From the python directory, run ./weddingWebsite.py.
  2. At the same time, from the current directory, run python3 -m http.server 8080.
  3. Navigate to http://localhost:8080/ and use the website.