Skip to content

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.

2 participants