Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Create a bash terminal with Golang and Vue.js

Notifications You must be signed in to change notification settings

amirhnajafiz-archive/terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal

Creating a bash terminal with Golang and Vue.js.

How to use the project?

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.

Demo

demo

Backend testing

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