Skip to content

Connecting to database

Priyadarshini Saha requested to merge 52-connect-database-to-backend into main

Description

Added code to connect local MySQL database to server application

Issue

Issue 52

Feature

Connection to database

Tophatting

  1. Download MySQL and SQL workbench locally
  1. In LogicApplication.Kt change your username and password for your respective MySQL server
  2. Run the server
  3. Should output "Successfully connected to database"

Expected current behavior

Connection to database

Changes

  • Used Java DriverManager, Connection and SQL Exception to connect to mysql database

Screenshots

Not required

Design Patterns

No design patterns applied

Deviations

Were there any deviations from the original design or architecture plan. If yes, what were they ?

Yes, was supposed to use Firebase/Firestore but now using MySQL

Additional

  • Unit test written
  • Meets requirements
  • Cross-browser tested
  • Added/updated documentation as needed
  • Camel case style used

Closes #52 (closed)

Edited by Jacob Meksavanh

Merge request reports

Loading