Compare commits
17 Commits
e2ae8f41e9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
7df6eb3bd5
|
|||
|
fc0629090e
|
|||
|
8f03b92bc4
|
|||
|
66fc781260
|
|||
|
a7eaa45869
|
|||
|
928a6024ad
|
|||
|
9b23688ee4
|
|||
|
3b5e133773
|
|||
|
96dd4949c2
|
|||
|
56fd10bccf
|
|||
|
3d61c4fc4b
|
|||
|
b6c4698fa9
|
|||
|
af4ab7d655
|
|||
|
1c312f4358
|
|||
|
3db77bc32a
|
|||
|
3b84e46c93
|
|||
|
420cf6711e
|
@@ -1,5 +0,0 @@
|
|||||||
# HTTP Settings
|
|
||||||
PORT=8080
|
|
||||||
|
|
||||||
# App Settings
|
|
||||||
STORAGE_PATH=files
|
|
||||||
+33
-10
@@ -1,14 +1,21 @@
|
|||||||
# ---> Go
|
### Project Specific
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
# Files
|
||||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
.env
|
||||||
#
|
.env.bak
|
||||||
|
.env.backup
|
||||||
|
.env.production
|
||||||
|
.forgent.json
|
||||||
|
.container_id
|
||||||
|
.session_id
|
||||||
|
*.log
|
||||||
|
docker-compose.override.yml
|
||||||
|
|
||||||
# Binaries for programs and plugins
|
# Binaries for programs and plugins
|
||||||
*.exe
|
*.exe
|
||||||
*.exe~
|
*.exe~
|
||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
|
||||||
drogobox
|
drogobox
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
@@ -17,13 +24,29 @@ drogobox
|
|||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
|
||||||
# vendor/
|
|
||||||
|
|
||||||
# Go workspace file
|
# Go workspace file
|
||||||
go.work
|
go.work
|
||||||
go.work.sum
|
go.work.sum
|
||||||
|
|
||||||
# env file
|
# Directories
|
||||||
.env
|
|
||||||
|
|
||||||
|
|
||||||
|
### Editor Specific
|
||||||
|
# Files
|
||||||
|
/*.sublime-project
|
||||||
|
/*.sublime-workspace
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
/.fleet
|
||||||
|
/.idea
|
||||||
|
/.nova
|
||||||
|
/.vscode
|
||||||
|
/.zed
|
||||||
|
|
||||||
|
### System Specific
|
||||||
|
# Files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
__MACOSX
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
## [0.0.0] - 2000-01-01
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
-
|
||||||
@@ -9,3 +9,6 @@ vet: fmt
|
|||||||
|
|
||||||
build: vet
|
build: vet
|
||||||
go build -o drogobox internal/app/main.go
|
go build -o drogobox internal/app/main.go
|
||||||
|
|
||||||
|
test:
|
||||||
|
go test ./tests/...
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
module drogobox.com/drogobox
|
|
||||||
|
|
||||||
go 1.25.9
|
|
||||||
|
|
||||||
require github.com/joho/godotenv v1.5.1 // indirect
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
|
|
||||||
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"log"
|
|
||||||
"os"
|
|
||||||
|
|
||||||
"github.com/joho/godotenv"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
err := godotenv.Load()
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal("Error loading .env file")
|
|
||||||
}
|
|
||||||
|
|
||||||
port := os.Getenv("PORT")
|
|
||||||
|
|
||||||
storage_path := os.Getenv("STORAGE_PATH")
|
|
||||||
|
|
||||||
fmt.Printf("in the future I will listen on port: %s\n", port)
|
|
||||||
fmt.Printf("Reading files from: %s\n", storage_path)
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user