HTTP-download-server-Golang

A website that supports HTTP downloads, pauses, resumes, redownloads, deletes, rate-limiting, and parallel multitasking downloads.

Stars
1
Committers
2

HTTP-download-server (Go version)

Technology Used

Web: Alpinejs + Tailwindcss + heroicons

Server: Go + Gin + Gorm + carrot + SQLite

Run locally

Web

1. Install the vscode plugin

Click -> Live Server or Search Live Server in vscode

2. Modify settings.json (Required)

  • Enter into Settings
  • Search live server settings ignore files
  • Click Edit in settings.json
  • Add the following:
"liveServer.settings.ignoreFiles": [
    "**/server/**/*",
    "**/*.go",
    "**/*.db",
]
  • Restart vscode

3. Run

cd ui
cd public/index.html

Right click the mouse to select -> Open with Live Server

Go

1. Download project

git clone https://github.com/Lemon001017/HTTP-download-server.git

2. Install dependencies

cd server
go mod tidy
go mod download

3. Unit Test

go test ./...

4. Run

cd cmd
go run  .  -dsn file:dev.db

Show api docs

http://localhost:8000/api/docs/
Related Projects