https://github.com/aaadddfgh/clipboard-go-vue
a clipboard web app
https://github.com/aaadddfgh/clipboard-go-vue
Last synced: 3 months ago
JSON representation
a clipboard web app
- Host: GitHub
- URL: https://github.com/aaadddfgh/clipboard-go-vue
- Owner: aaadddfgh
- License: mit
- Created: 2023-10-02T13:56:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-11T23:03:28.000Z (over 1 year ago)
- Last Synced: 2025-01-16T03:15:42.204Z (5 months ago)
- Language: Go
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clipboard-go-vue
A web clipboard
## Features
### secure communication
This clipboard protect your communication even you don't use HTTPS/SSL to protect your infomation.
(can't prevent Man-in-the-MiddleAttack)
And protect your clipboard with password (alternative).### config.json
In config.json
``` json
{
"Password": "your_password",
"PortNumber": 3000,
}
`````` go
type Setting struct {
Password string `json:"Password" validate:"required_unless=NoPassword false,max=20,min=6"`
NoPassword bool `json:"NoPassword"`
PortNumber uint16 `json:"PortNumber"`
Lang string `json:"Lang"`
}
```## Build
If you don't want to build yourself, you can download flies in release.
Else:
### Requirement
1. node >= 14
2. go >= 1.20### Steps
1. build html
Pull branch `vue`, in the dir you pulled `vue` branch, run
```
npm install
npm bulid
```
after that, html and other files should be in `./dist` directory.2. build server
Pull branch `main`, in the directory you pulled `main` branch, run
```
go install
go build
```
you should see `clipboard.exe`.3. run
Move files you got in 1st step to `./public` in same directory as `clipboard.exe`, and run it.