Creating a bash terminal with Golang and Vue.js.
Clone into project:
git clone https://github.com/amirhnajafiz/terminal.git
Start back-end server:
cd server
go run main.go
Server will be starting on 5000.
Start client application:
cd client
npm run dev
Application will be available on 5173.
curl -X POST -H "Content-Type: application/json" -d '{"command": "time"}' http://localhost:5000/api/cmd
curl -X POST -H "Content-Type: application/json" -d '{"command": "whoami"}' http://localhost:5000/api/cmd
curl -X POST -H "Content-Type: application/json" -d '{"command": "os"}' http://localhost:5000/api/cmd