jctaoo / vite-electron-esbuild-starter

⚡️The electron starter using Vite and esbuild to fast development.
MIT License
54 stars 7 forks source link

Packaging an executable ( server ) written in Go #50

Closed oSethoum closed 2 years ago

oSethoum commented 3 years ago

I have an API written in Go, I wanna package it with the electron app and start it when the app starts.

is there a way to do that ?

jctaoo commented 3 years ago

Do you have an example repository on GitHub?

oSethoum commented 3 years ago

@jctaoo I have an executable that contains the business logic of the app and it expose an API ( rest API ) in order to get the data from it.

image

This is basically what I have and and what I want to do, for now it's not working in development.

This is the repository link : https://github.com/oSethoum/Store

The server starts on the port 5000 The API route is : /users returns and array of fake data.

This is as detailed as I can get.

Thank you very much for the response ^^.