Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple server functionality and integrate with UI #1146

Closed
wants to merge 3 commits into from

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented Mar 28, 2025

Follow up to #1112

Just a simple server for now to test serving up a static sqlite gui app.

Testing a few pre-built apps.

Related issues

  • Fixes #

Proposed Changes

Testing Instructions

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

- Implemented a SimpleServer class to manage starting and stopping a server.
- Added openSimpleServer function in ipc-handlers to handle server requests.
- Integrated a button in the Header component to open the simple server.
- Created tests for the SimpleServer class and the openSimpleServer function to ensure proper functionality.
- Updated preload script to expose the new openSimpleServer API method.
this.port = await portFinder.getOpenPort();

// Add a basic route handler
app.get( '/', ( req, res ) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried a node-based sql gui module, but it didn't work at all.

Looking at some static viewers, which we can serve from app.use( express.static( path.join( __dirname, '../../vendor/sql-viewer/public' ) ) ); or somewhere else.

@ramonjd ramonjd self-assigned this Mar 28, 2025
@ramonjd ramonjd closed this Apr 4, 2025
@ramonjd ramonjd deleted the try/add-manage-database-server branch April 4, 2025 04:26
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.

1 participant