Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemon001017/http-download-server-golang
A website that supports HTTP downloads, pauses, resumes, redownloads, deletes, rate-limiting, and parallel multitasking downloads.
https://github.com/lemon001017/http-download-server-golang
gin gorm sqlite tailwindui
Last synced: about 1 month ago
JSON representation
A website that supports HTTP downloads, pauses, resumes, redownloads, deletes, rate-limiting, and parallel multitasking downloads.
- Host: GitHub
- URL: https://github.com/lemon001017/http-download-server-golang
- Owner: Lemon001017
- Created: 2024-08-10T08:22:50.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T12:09:27.000Z (2 months ago)
- Last Synced: 2024-10-01T00:43:43.247Z (about 2 months ago)
- Topics: gin, gorm, sqlite, tailwindui
- Language: Go
- Homepage:
- Size: 454 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) 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
```shell
cd ui
cd public/index.html
```Right click the mouse to select -> `Open with Live Server`
## Go
### 1. Download project
```shell
git clone https://github.com/Lemon001017/HTTP-download-server.git
```### 2. Install dependencies
```shell
cd server
go mod tidy
go mod download
```### 3. Unit Test
```shell
go test ./...
```### 4. Run
```shell
cd cmd
go run . -dsn file:dev.db
```### Show api docs
```shell
http://localhost:8000/api/docs/
```