Skip to content

Conversation

@ThomasCode92
Copy link
Owner

@ThomasCode92 ThomasCode92 commented May 28, 2025

🚀 Set Up SingleStore DB Connection & Refactor Mock Data

This PR introduces foundational improvements to the project by integrating a production-grade database and enhancing thedevelopment mock data setup.


✅ What's New

🔗 SingleStore Database Integration

🧪 Mock Data Refactor

  • Refactored mock data into a cleaner, normalized structure for improved clarity and scalability.

📁 Files Affected

File Description
server/db/index.ts Added connection logic for SingleStore DB
lib/mock-data.ts Refactored structure of mock data
README.md Updated with setup instructions

🛠️ Setup Notes

Be sure to add the database credentials to the .env file:

SINGLESTORE_USER=
SINGLESTORE_PASSWORD=
SINGLESTORE_HOST=
SINGLESTORE_PORT=
SINGLESTORE_DATABASE=

📌 Why It Matters

  • Lays the groundwork for real data integration.
  • Makes mock data easier to maintain and extend.
  • Keeps sensitive credentials out of the source code.

@netlify
Copy link

netlify bot commented May 28, 2025

Deploy Preview for t4s-drive-tutorial ready!

Name Link
🔨 Latest commit 75f7e09
🔍 Latest deploy log https://app.netlify.com/projects/t4s-drive-tutorial/deploys/683948f183b95a0008689615
😎 Deploy Preview https://deploy-preview-2--t4s-drive-tutorial.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ThomasCode92 ThomasCode92 self-assigned this May 29, 2025
@ThomasCode92 ThomasCode92 merged commit c62d97b into main Jun 1, 2025
5 checks passed
@ThomasCode92 ThomasCode92 deleted the database-setup branch June 1, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants