init folders

This commit is contained in:
Bowens
2021-11-21 11:41:54 +08:00
parent 91dbd2a1c3
commit b39ed3ce2f
16 changed files with 121 additions and 0 deletions

32
.air.toml Normal file
View File

@@ -0,0 +1,32 @@
root = "."
tmp_dir = "storage/temp"
[build]
bin = "./storage/temp/main"
cmd = "go build -o ./storage/temp/main ."
delay = 1000
exclude_dir = ["storage", "database"]
exclude_file = []
exclude_regex = []
exclude_unchanged = false
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html"]
kill_delay = "0s"
log = "build-errors.log"
send_interrupt = false
stop_on_error = true
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
time = false
[misc]
clean_on_exit = false

56
.env.example Normal file
View File

@@ -0,0 +1,56 @@
APP_NAME=nft
APP_ENV=local
APP_KEY=lsidkdlseugkcmhd
APP_DEBUG=true
APP_URL=http://www.nft.com
APP_HOST=127.0.0.1:3000
APP_LOG_LEVEL=debug
CACHE_DRIVER=redis
SSL_ON=false
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=root
DB_PASSWORD=
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=
REDIS_PORT=6379
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
ZXL_HOST=
ZXL_APP_ID=
ZXL_APP_KEY=
ZXL_PLATFORM_ID=
ZXL_PRIVATE_KEY=
ZXL_PUBLIC_KEY=
TENCENTYUN_SECRET_ID=
TENCENTYUN_SECRET_Key=
TENCENTYUN_COS_APP_ID=
TENCENTYUN_COS_BUCKET=
TENCENTYUN_COS_PRIVATE_BUCKET=
TENCENTYUN_COS_REGION=
TENCENTYUN_SMS_SDK_APP_ID=
TENCENTYUN_SMS_SIGN_NAME=
TENCENTYUN_SMS_TEMPLATE_VERIFY=
TENCENTYUN_SMS_REGION=
WECHAT_APP_ID=
WECHAT_APP_SECRET=
WECHAT_APP_TOKEN=
WECHAT_APP_AES_KEY=
WECHAT_MCH_ID=
WECHAT_API_KEY=
WECHAT_H5_WAP_URL=
JWT_SECRET=DleC6ONXnDL7X8wW5UVF6BTnvJ03Od9w0flcOBrYhTxO3PLH9tZ66mknRLOYRP4C

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.idea
.env

1
app/console/kernel.go Normal file
View File

@@ -0,0 +1 @@
package console

0
app/http/controllers/.gitignore vendored Normal file
View File

0
app/http/middleware/.gitignore vendored Normal file
View File

0
app/models/.gitignore vendored Normal file
View File

0
app/providers/.gitignore vendored Normal file
View File

0
bootstrap/.gitignore vendored Normal file
View File

0
config/.gitignore vendored Normal file
View File

0
database/migrations/.gitignore vendored Normal file
View File

25
go.mod Normal file
View File

@@ -0,0 +1,25 @@
module goravel
go 1.16
require (
cloud.google.com/go/kms v1.1.0 // indirect
github.com/RichardKnop/machinery/v2 v2.0.11
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/gin-gonic/gin v1.7.4
github.com/go-redis/redis/v8 v8.11.4
github.com/go-sql-driver/mysql v1.6.0
github.com/golang-migrate/migrate/v4 v4.15.1
github.com/h2non/filetype v1.1.1
github.com/jianfengye/collection v1.3.2
github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible
github.com/spf13/cast v1.4.1
github.com/spf13/viper v1.9.0
github.com/ulule/limiter/v3 v3.8.0
github.com/urfave/cli/v2 v2.3.0
github.com/wumansgy/goEncrypt v0.0.0-20210730092718-e359121aa81e
github.com/zsais/go-gin-prometheus v0.1.0
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
gorm.io/driver/mysql v1.1.2
gorm.io/gorm v1.21.16
)

4
main.go Normal file
View File

@@ -0,0 +1,4 @@
package main
func main() {
}

0
public/.gitignore vendored Normal file
View File

1
routes/routes.go Normal file
View File

@@ -0,0 +1 @@
package routes

0
storage/logs/.gitignore vendored Normal file
View File