Hello, I am new to using Vue.js and Firebase. Currently, I am working on creating a user interface for a network intrusion detection system with Vue.js. I have developed a Python script that allows me to send the terminal output to Firebase. Right now, I am testing the app on localhost:8080.
My goal in the Vue app is to be able to trigger the local python script from the terminal by clicking a start button and stop the process by clicking a stop button.
I've come across information online suggesting that accomplishing this task requires a server. Does anyone have any recommendations on how I can achieve this?
I've also heard that using 'child_process' from Node.js might be easier, but unfortunately, it cannot be used directly in Vue.js.
What would be the best or simplest approach to implementing this functionality?
<template>
<div id="new-packet">
<h3>Start/Stop Analysis</h3>
<button type="submit" class="btn">Start</button>
<router-link to="/home" class="btn green">Stop</router-link>
</div>
</template>
<script>
export default {
name: 'new-packet',
data () {
return {}
}
}
</script>