https://github.com/razvanmtn/go-node-integration
Run Go binary in Nodejs using child processes
https://github.com/razvanmtn/go-node-integration
child-process go golang node nodejs
Last synced: about 2 months ago
JSON representation
Run Go binary in Nodejs using child processes
- Host: GitHub
- URL: https://github.com/razvanmtn/go-node-integration
- Owner: razvanmtn
- License: mit
- Created: 2024-08-06T07:34:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T07:59:08.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T22:14:54.657Z (over 1 year ago)
- Topics: child-process, go, golang, node, nodejs
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go-Node Integration
## Overview
This repository demostrates how to run Go scripts from Nodejs application using `child_process` module. By leveraging Go's performance capabilities and Node's ease of use, you can achieve a powerful integration that maximizes the strengths of both languages.
## Features
- Run Go binaries from a Nodejs app
- Capture and handle the output from Go binaries within Node
- Example of performing basic operations (add, subtract)
## Prerequisites
Before you begin, ensure you have met the following requirements:
- Nodejs
- Go
- Git
## Getting started
1. Clone the repository
2. Build the go scripts: `npm run build`
3. Run the app: `npm start`
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.