Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amirhnajafiz-archive/terminal

Create a bash terminal with Golang and Vue.js
https://github.com/amirhnajafiz-archive/terminal

gin go golang terminal-app vue

Last synced: 3 months ago
JSON representation

Create a bash terminal with Golang and Vue.js

Awesome Lists containing this project

README

        

# Terminal

![](https://img.shields.io/badge/Go-1.18.2-66AADD?style=for-the-badge&logo=go)
![](https://img.shields.io/badge/Vue-3.0-008866?style=for-the-badge&logo=vue.js)

Creating a bash terminal with **Golang** and **Vue.js**.

## How to use the project?
Clone into project:
```shell
git clone https://github.com/amirhnajafiz/terminal.git
```

Start back-end server:
```shell
cd server
go run main.go
```

Server will be starting on **5000**.

Start client application:
```shell
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
```