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

Latest commit

 

History

History
40 lines (29 loc) · 960 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 960 Bytes

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